From e542a8e0a0fb154dba30795153be90e45b49f75f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 8 May 2024 17:08:38 +0200 Subject: [PATCH] Add action to reset all peak-hold (incl input meters) --- gtk2_ardour/ardour_ui_ed.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index 9e57694f36..dabbc6f14c 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -501,7 +501,10 @@ ARDOUR_UI::install_actions () act = ActionManager::register_toggle_action (main_actions, X_("ToggleLatencyCompensation"), _("Disable Latency Compensation"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_latency_switch)); ActionManager::session_sensitive_actions.push_back (act); - act = ActionManager::register_toggle_action (main_actions, X_("ResetAllPeakDisplays"), _("Reset All Meter Peaks"), []() { ArdourMeter::ResetAllPeakDisplays (); }); + act = ActionManager::register_toggle_action (main_actions, X_("ResetAllPeakDisplays"), _("Reset Mixer Meter Peaks"), []() { ArdourMeter::ResetAllPeakDisplays (); }); + ActionManager::session_sensitive_actions.push_back (act); + + act = ActionManager::register_toggle_action (main_actions, X_("ResetMeterPeakHold"), _("Reset All Meter Peak Hold"), []() { ArdourMeter::ResetAllPeakDisplays (); ActionManager::get_action ("Recorder", "reset-input-peak-hold")->activate (); }); ActionManager::session_sensitive_actions.push_back (act); act = ActionManager::register_action (main_actions, X_("MonitorMenu"), _("Monitor Section")); /* just the submenu item */