From 8c745ff78cff99498a527113b608a4106ff39248 Mon Sep 17 00:00:00 2001 From: Franke Burgarino Date: Tue, 6 Jan 2026 17:07:09 -0600 Subject: [PATCH] MCU: Fix "Disabled" option for Function Keys Choosing some option and then trying to remove it by clicking "Disabled" previously did nothing. Now sets it back to blank. Also fixed for Tascam US-2400. --- libs/surfaces/mackie/gui.cc | 4 +--- libs/surfaces/us2400/gui.cc | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/libs/surfaces/mackie/gui.cc b/libs/surfaces/mackie/gui.cc index 2b69c2da01..b431795880 100644 --- a/libs/surfaces/mackie/gui.cc +++ b/libs/surfaces/mackie/gui.cc @@ -653,11 +653,9 @@ MackieControlProtocolGUI::action_changed (const Glib::ustring &sPath, const Tree { string action_path = (*iter)[action_model.columns().path]; - // Remove Binding is not in the action map but still valid - bool remove = false; - if (action_path == "Remove Binding") { + if (action_path.empty()) { remove = true; } diff --git a/libs/surfaces/us2400/gui.cc b/libs/surfaces/us2400/gui.cc index 5236ead357..00423c7627 100644 --- a/libs/surfaces/us2400/gui.cc +++ b/libs/surfaces/us2400/gui.cc @@ -442,11 +442,9 @@ US2400ProtocolGUI::action_changed (const Glib::ustring &sPath, const TreeModel:: { string action_path = (*iter)[action_model.columns().path]; - // Remove Binding is not in the action map but still valid - bool remove = false; - if (action_path == "Remove Binding") { + if (action_path.empty()) { remove = true; }