mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 15:37:48 +01:00
[Summary] Next actions will now make a session dirty:
Toggling inspector Toggling meter bridge Toggling mixer bridge Mouse tool change
This commit is contained in:
parent
b2db044c88
commit
fe0ace14c8
7 changed files with 27 additions and 2 deletions
|
|
@ -2507,6 +2507,14 @@ ARDOUR_UI::save_state (const string & name, bool switch_to_it)
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
ARDOUR_UI::set_session_dirty ()
|
||||
{
|
||||
if (_session) {
|
||||
_session->set_dirty ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::primary_clock_value_changed ()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -188,6 +188,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
|
|||
int save_session_state (const std::string & name = "", bool pending = false, bool switch_to_it = false);
|
||||
void save_session_gui_state ();
|
||||
int save_state (const std::string & state_name = "", bool switch_to_it = false);
|
||||
void set_session_dirty ();
|
||||
|
||||
static ARDOUR_UI *instance () { return theArdourUI; }
|
||||
static UIConfiguration *config () { return ui_config; }
|
||||
|
|
|
|||
|
|
@ -387,6 +387,8 @@ ARDOUR_UI::toggle_mixer_bridge_view ()
|
|||
} else {
|
||||
editor->get_container ("mixer_bridge_view_home").hide ();
|
||||
}
|
||||
|
||||
set_session_dirty ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -421,6 +423,8 @@ ARDOUR_UI::show_meterbridge_view ()
|
|||
editor->get_container ("edit_pane").show ();
|
||||
editor->get_container ("compact_meter_bridge_home").show ();
|
||||
}
|
||||
|
||||
set_session_dirty ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -4040,6 +4040,14 @@ Editor::session_state_saved (string)
|
|||
_snapshots->redisplay ();
|
||||
}
|
||||
|
||||
void
|
||||
Editor::set_session_dirty ()
|
||||
{
|
||||
if (_session) {
|
||||
_session->set_dirty ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Editor::update_tearoff_visibility()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2016,7 +2016,8 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||
bool on_key_release_event (GdkEventKey*);
|
||||
|
||||
void session_state_saved (std::string);
|
||||
|
||||
void set_session_dirty ();
|
||||
|
||||
Glib::RefPtr<Gtk::Action> undo_action;
|
||||
Glib::RefPtr<Gtk::Action> redo_action;
|
||||
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@ Editor::show_editor_mixer (bool yn)
|
|||
|
||||
if (track_views.empty()) {
|
||||
show_editor_mixer_when_tracks_arrive = true;
|
||||
set_session_dirty ();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -178,6 +179,8 @@ Editor::show_editor_mixer (bool yn)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
set_session_dirty ();
|
||||
|
||||
#ifdef GTKOSX
|
||||
/* XXX gtk problem here */
|
||||
|
|
|
|||
|
|
@ -350,7 +350,7 @@ Editor::mouse_mode_toggled (MouseMode m)
|
|||
|
||||
mouse_mode = m;
|
||||
|
||||
instant_save ();
|
||||
set_session_dirty ();
|
||||
|
||||
/* this should generate a new enter event which will
|
||||
trigger the appropiate cursor.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue