void
ARDOUR_UI::shutdown ()
{
- ui_config->save_state();
+ if (ui_config->dirty()) {
+ ui_config->save_state();
+ }
}
void
keyboard->setup_keybindings ();
editor->setup_tooltips ();
editor->UpdateAllTransportClocks.connect (sigc::mem_fun (*this, &ARDOUR_UI::update_transport_clocks));
+
+ editor->track_mixer_selection ();
+ mixer->track_editor_selection ();
}
void
}
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
-
+
if (tact->get_active()) {
goto_mixer_window ();
} else {
mixer->hide ();
}
-}
+}
void
ARDOUR_UI::toggle_mixer_on_top ()
}
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
-
+
if (tact->get_active()) {
/* Toggle the mixer to `visible' if required */
act = ActionManager::get_action (X_("Common"), X_("toggle-mixer"));
if (act) {
tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
-
+
if (!tact->get_active()) {
tact->set_active ();
}
}
-
+
goto_mixer_window ();
} else {
goto_editor_window ();