Fix attachment state when creating new session from running instance

This commit is contained in:
Robin Gareus 2025-07-31 23:37:04 +02:00
parent 9d0688fbd4
commit b34ca733d2
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -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;