From 2e88a888ecb95bf92f73b7653824f5570e86524a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=A4nel?= Date: Wed, 4 Mar 2026 22:21:43 +0100 Subject: [PATCH] MainBar: refresh sample rate list when channels popup closes 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. --- pv/toolbars/mainbar.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pv/toolbars/mainbar.cpp b/pv/toolbars/mainbar.cpp index cd46c063..535d4156 100644 --- a/pv/toolbars/mainbar.cpp +++ b/pv/toolbars/mainbar.cpp @@ -553,6 +553,11 @@ void MainBar::update_device_config_widgets() Channels *const channels = new Channels(session_, this); channels_button_.set_popup(channels); + // Refresh sample rate list when channels popup closes, since + // toggling channels may change the available sample rates + connect(channels, SIGNAL(closed()), + this, SLOT(on_config_changed())); + // Update supported options. sample_count_supported_ = false;