set defaults/values for various Editor settings (more) correctly

This commit is contained in:
Paul Davis 2025-07-29 20:25:25 -06:00
parent 1d4e3940d1
commit 004f93a429

View file

@ -2233,40 +2233,29 @@ Editor::set_state (const XMLNode& node, int version)
set_edit_point_preference (_edit_point); set_edit_point_preference (_edit_point);
} }
if (node.get_property ("follow-playhead", yn)) { #ifndef LIVETRAX
set_follow_playhead (yn); yn = false;
} #else
yn = true;
#endif
node.get_property ("follow-playhead", yn);
set_follow_playhead (yn);
if (node.get_property ("stationary-playhead", yn)) { yn = false;
set_stationary_playhead (yn); node.get_property ("stationary-playhead", yn);
} set_stationary_playhead (yn);
yn = true; yn = true;
node.get_property ("show-editor-mixer", yn); node.get_property ("show-editor-mixer", yn);
{ show_editor_mixer_action->set_active (yn);
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (X_("Editor"), X_("show-editor-mixer"));
/* do it twice to force the change */
tact->set_active (!yn);
tact->set_active (yn);
}
yn = false; yn = false;
node.get_property ("show-editor-list", yn); node.get_property ("show-editor-list", yn);
{ show_editor_list_action->set_active (yn);
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (X_("Editor"), X_("show-editor-list"));
/* do it twice to force the change */
tact->set_active (!yn);
tact->set_active (yn);
}
yn = false; yn = false;
show_editor_props_action->set_active (yn);
node.get_property ("show-editor-props", yn); node.get_property ("show-editor-props", yn);
{
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (X_("Editor"), X_("show-editor-props"));
/* do it twice to force the change */
tact->set_active (!yn);
tact->set_active (yn);
}
guint index; guint index;
if (node.get_property (X_("editor-list-btn1"), index)) { if (node.get_property (X_("editor-list-btn1"), index)) {