store and recall the sidebar List visibility on the trigger page
This commit is contained in:
parent
71d2647867
commit
dd52ea7ce5
@ -219,6 +219,9 @@ TriggerPage::get_state () const
|
||||
|
||||
node->add_child_nocopy (_midi_editor->get_state());
|
||||
|
||||
Glib::RefPtr<ToggleAction> act = ActionManager::get_toggle_action ("Cues", "ToggleTriggerList");
|
||||
node->set_property ("show-trigger-list", act->get_active ());
|
||||
|
||||
return *node;
|
||||
}
|
||||
|
||||
@ -235,6 +238,15 @@ TriggerPage::set_state (const XMLNode& node, int version)
|
||||
_midi_editor->set_state (*mn, version);
|
||||
}
|
||||
|
||||
bool yn = true;
|
||||
node.get_property ("show-trigger-list", yn);
|
||||
{
|
||||
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (X_("Cues"), X_("ToggleTriggerList"));
|
||||
/* do it twice to force the change */
|
||||
tact->set_active (!yn);
|
||||
tact->set_active (yn);
|
||||
}
|
||||
|
||||
return Tabbable::set_state (node, version);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user