Add NSM ':switch:' capability

This allows to switch from one Ardour session to another without
application restart.

This also include some minor related NSM fixes.
This commit is contained in:
Houston4444 2021-12-02 14:34:58 +01:00 committed by Robin Gareus
parent 6eb1559f79
commit 692aa7bbb8
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
5 changed files with 16 additions and 8 deletions

View file

@ -238,7 +238,7 @@ public:
int load_session_from_startup_fsm ();
/// @return true if session was successfully unloaded.
int unload_session (bool hide_stuff = false);
int unload_session (bool hide_stuff = false, bool force_unload = false);
void close_session();
int save_state_canfail (std::string state_name = "", bool switch_to_it = false);
@ -927,6 +927,7 @@ private:
void action_script_changed (int i, const std::string&);
void ask_about_scratch_deletion ();
bool nsm_first_session_opened;
};
#endif /* __ardour_gui_h__ */