do not save or restore tabbable state for livetrax
This commit is contained in:
parent
98966a0d1c
commit
5c5fae430e
@ -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);
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user