13
0

do not save or restore tabbable state for livetrax

This commit is contained in:
Paul Davis 2024-04-02 17:57:26 -06:00
parent 98966a0d1c
commit 5c5fae430e
2 changed files with 12 additions and 4 deletions

View File

@ -2536,7 +2536,9 @@ Editor::set_state (const XMLNode& node, int version)
PBD::Unwinder<bool> nsi (no_save_instant, true);
bool yn;
Tabbable::set_state (node, version);
if (!Profile->get_livetrax()) {
Tabbable::set_state (node, version);
}
samplepos_t ph_pos;
if (_session && node.get_property ("playhead", ph_pos)) {
@ -2754,7 +2756,9 @@ Editor::get_state () const
node->set_property ("id", id().to_s ());
node->add_child_nocopy (Tabbable::get_state());
if (!Profile->get_livetrax()) {
node->add_child_nocopy (Tabbable::get_state());
}
node->set_property("edit-horizontal-pane-pos", edit_pane.get_divider ());
node->set_property("notebook-shrunk", _notebook_shrunk);

View File

@ -2560,7 +2560,9 @@ Mixer_UI::set_state (const XMLNode& node, int version)
{
bool yn;
Tabbable::set_state (node, version);
if (!Profile->get_livetrax()) {
Tabbable::set_state (node, version);
}
if (node.get_property ("narrow-strips", yn)) {
if (yn) {
@ -2704,7 +2706,9 @@ Mixer_UI::get_state () const
{
XMLNode* node = new XMLNode (X_("Mixer"));
node->add_child_nocopy (Tabbable::get_state());
if (!Profile->get_livetrax()) {
node->add_child_nocopy (Tabbable::get_state());
}
node->set_property (X_("mixer-rhs-pane1-pos"), rhs_pane1.get_divider());
node->set_property (X_("mixer-rhs_pane2-pos"), rhs_pane2.get_divider());