From 9153521f4acf1e45ebe69e4b1e655297064439fd Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 10 Nov 2022 20:58:45 +0100 Subject: [PATCH] Do not highlight momentarily recalled scenes Since momentary override is a singleton, it needs to remain GUI only, and not a session API available to any UI. The middle-clicked button is rendered as pressed. So it is already obvious and the Changed() signal that is emitted when temporarily restoring a scene can simply be ignored. --- gtk2_ardour/mixer_ui.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index ccab3e5513..04555f84fb 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -4164,6 +4164,10 @@ Mixer_UI::scene_label_press (GdkEventButton* ev, int idx) void Mixer_UI::update_scene_buttons () { + if (_mixer_scene_release) { + /* do not change highlight for momentary scene */ + return; + } bool all_unset = true; for (size_t idx = 0; idx < _mixer_scene_buttons.size (); ++idx) { boost::shared_ptr scn;