_device_selector(this),
_updating_device_selector(false),
_configure_button(this),
+ _configure_button_action(NULL),
_probes_button(this),
_probes_popup(_session, this),
_record_length_selector(this),
_run_stop_button.setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
addWidget(&_device_selector);
- addWidget(&_configure_button);
+ _configure_button_action = addWidget(&_configure_button);
addWidget(&_probes_button);
addWidget(&_record_length_selector);
_sample_rate_list_action = addWidget(&_sample_rate_list);
sr_dev_inst *const sdi = get_selected_device();
_session.set_device(sdi);
- _configure_button.set_popup(new DeviceOptions(sdi, this));
+ // Update the configure popup
+ DeviceOptions *const opts = new DeviceOptions(sdi, this);
+ _configure_button_action->setVisible(
+ !opts->binding().properties().empty());
+ _configure_button.set_popup(opts);
}
void SamplingBar::on_sample_rate_changed()
bool _updating_device_selector;
pv::widgets::PopupToolButton _configure_button;
+ QAction *_configure_button_action;
pv::widgets::PopupToolButton _probes_button;
pv::popups::Probes _probes_popup;