mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
do not save or restore tabbable state for livetrax
This commit is contained in:
parent
4c5b620723
commit
6760a06d09
2 changed files with 12 additions and 4 deletions
|
|
@ -2528,7 +2528,9 @@ Editor::set_state (const XMLNode& node, int version)
|
||||||
PBD::Unwinder<bool> nsi (no_save_instant, true);
|
PBD::Unwinder<bool> nsi (no_save_instant, true);
|
||||||
bool yn;
|
bool yn;
|
||||||
|
|
||||||
Tabbable::set_state (node, version);
|
if (!Profile->get_livetrax()) {
|
||||||
|
Tabbable::set_state (node, version);
|
||||||
|
}
|
||||||
|
|
||||||
samplepos_t ph_pos;
|
samplepos_t ph_pos;
|
||||||
if (_session && node.get_property ("playhead", ph_pos)) {
|
if (_session && node.get_property ("playhead", ph_pos)) {
|
||||||
|
|
@ -2746,7 +2748,9 @@ Editor::get_state () const
|
||||||
|
|
||||||
node->set_property ("id", id().to_s ());
|
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("edit-horizontal-pane-pos", edit_pane.get_divider ());
|
||||||
node->set_property("notebook-shrunk", _notebook_shrunk);
|
node->set_property("notebook-shrunk", _notebook_shrunk);
|
||||||
|
|
|
||||||
|
|
@ -2560,7 +2560,9 @@ Mixer_UI::set_state (const XMLNode& node, int version)
|
||||||
{
|
{
|
||||||
bool yn;
|
bool yn;
|
||||||
|
|
||||||
Tabbable::set_state (node, version);
|
if (!Profile->get_livetrax()) {
|
||||||
|
Tabbable::set_state (node, version);
|
||||||
|
}
|
||||||
|
|
||||||
if (node.get_property ("narrow-strips", yn)) {
|
if (node.get_property ("narrow-strips", yn)) {
|
||||||
if (yn) {
|
if (yn) {
|
||||||
|
|
@ -2704,7 +2706,9 @@ Mixer_UI::get_state () const
|
||||||
{
|
{
|
||||||
XMLNode* node = new XMLNode (X_("Mixer"));
|
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-pane1-pos"), rhs_pane1.get_divider());
|
||||||
node->set_property (X_("mixer-rhs_pane2-pos"), rhs_pane2.get_divider());
|
node->set_property (X_("mixer-rhs_pane2-pos"), rhs_pane2.get_divider());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue