From b34ca733d2552a70043a2e653eaa83ae42bb669d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 31 Jul 2025 23:37:04 +0200 Subject: [PATCH] Fix attachment state when creating new session from running instance --- gtk2_ardour/editor.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index c45c37a469..5db6123c99 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -2251,14 +2251,22 @@ Editor::set_state (const XMLNode& node, int version) yn = true; node.get_property ("show-editor-mixer", yn); + /* force a change to sync action state and actual attachment visibility. + * Otherwise after creating a new session from a running instance + * the editor-mixer and bottom attachment are not visible, even though + * the actions are enabled. + */ + show_editor_mixer_action->set_active (!yn); show_editor_mixer_action->set_active (yn); yn = false; node.get_property ("show-editor-list", yn); + show_editor_list_action->set_active (!yn); // ditto show_editor_list_action->set_active (yn); yn = false; node.get_property ("show-editor-props", yn); + show_editor_props_action->set_active (!yn); // ditto show_editor_props_action->set_active (yn); guint index;