Save and restore the selected tab and its width in the editor list.
git-svn-id: svn://localhost/ardour2/branches/3.0@6860 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
60158fd2b4
commit
ad5bcfaa0b
@ -2399,6 +2399,13 @@ Editor::set_state (const XMLNode& node, int /*version*/)
|
||||
}
|
||||
}
|
||||
|
||||
if ((prop = node.property (X_("editor-list-page")))) {
|
||||
the_notebook.set_current_page (atoi (prop->value ()));
|
||||
}
|
||||
|
||||
if ((prop = node.property (X_("editor-pane-position")))) {
|
||||
edit_pane.set_position (atoi (prop->value ()));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -2482,6 +2489,12 @@ Editor::get_state ()
|
||||
node->add_property (X_("show-editor-list"), tact->get_active() ? "yes" : "no");
|
||||
}
|
||||
|
||||
snprintf (buf, sizeof (buf), "%d", the_notebook.get_current_page ());
|
||||
node->add_property (X_("editor-list-page"), buf);
|
||||
|
||||
snprintf (buf, sizeof (buf), "%d", edit_pane.get_position ());
|
||||
node->add_property (X_("editor-pane-position"), buf);
|
||||
|
||||
return *node;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user