Skip to content

MainBar: refresh sample rate list when channels popup closes#115

Open
heeen wants to merge 1 commit intosigrokproject:masterfrom
heeen:refresh-rates-on-channel-toggle
Open

MainBar: refresh sample rate list when channels popup closes#115
heeen wants to merge 1 commit intosigrokproject:masterfrom
heeen:refresh-rates-on-channel-toggle

Conversation

@heeen
Copy link

@heeen heeen commented Mar 4, 2026

Summary

  • Connect channels popup closed() signal to on_config_changed() to refresh the sample rate dropdown after toggling channels

Problem

Some drivers change available sample rates based on enabled channel count (e.g. sipeed-slogic-analyzer: 200MHz@16ch, 400MHz@8ch, 800MHz@4ch). The sample rate dropdown was not refreshed after toggling channels, so users had to manually change the rate to trigger a re-query.

Fix

When the channels popup closes, call on_config_changed() which calls commit_sample_rate()update_sample_rate_selector(), refreshing the rate dropdown.

Test plan

  • Open PulseView with a device that has channel-dependent sample rates
  • Toggle channels in the channels popup
  • Close the popup and verify the sample rate dropdown updates immediately

Some drivers (e.g. sipeed-slogic-analyzer) change the available
sample rates based on which channels are enabled. Connect the
channels popup closed() signal to on_config_changed() so the
sample rate dropdown is refreshed after the user toggles channels.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant