mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 04:09:29 +01:00
Fix attachment state when creating new session from running instance
This commit is contained in:
parent
9d0688fbd4
commit
b34ca733d2
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue