mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 21:56:30 +01:00
[Summary] hide Editor window on next workflows: 1) Session->new with unmodified session case 2) Session->new with modified session case
[Reviewed] GZharun
This commit is contained in:
parent
cfe2b3c17c
commit
1998ed77a6
1 changed files with 11 additions and 12 deletions
|
|
@ -856,6 +856,7 @@ ARDOUR_UI::starting ()
|
|||
return -1;
|
||||
}
|
||||
|
||||
goto_editor_window ();
|
||||
} else {
|
||||
|
||||
if (brand_new_user) {
|
||||
|
|
@ -882,8 +883,6 @@ ARDOUR_UI::starting ()
|
|||
|
||||
use_config ();
|
||||
|
||||
goto_editor_window ();
|
||||
|
||||
WM::Manager::instance().show_visible ();
|
||||
|
||||
/* We have to do this here since goto_editor_window() ends up calling show_all() on the
|
||||
|
|
@ -2788,14 +2787,14 @@ ARDOUR_UI::get_session_parameters (bool quit_on_cancel, bool should_be_new, stri
|
|||
on the SessionDialog so that we don't Quit directly
|
||||
*/
|
||||
cancel_not_quit = (_session != 0);
|
||||
|
||||
if (_session && _session->dirty()) {
|
||||
if (unload_session (false)) {
|
||||
/* unload cancelled by user */
|
||||
return 0;
|
||||
}
|
||||
ARDOUR_COMMAND_LINE::session_name = "";
|
||||
}
|
||||
|
||||
if (_session) {
|
||||
if (unload_session (true)) {
|
||||
/* unload cancelled by user */
|
||||
return 0;
|
||||
}
|
||||
ARDOUR_COMMAND_LINE::session_name = "";
|
||||
}
|
||||
|
||||
if (!load_template.empty()) {
|
||||
should_be_new = true;
|
||||
|
|
@ -3007,6 +3006,8 @@ ARDOUR_UI::get_session_parameters (bool quit_on_cancel, bool should_be_new, stri
|
|||
}
|
||||
}
|
||||
|
||||
goto_editor_window ();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
@ -3026,8 +3027,6 @@ ARDOUR_UI::close_session()
|
|||
if (get_session_parameters (true, false)) {
|
||||
exit (1);
|
||||
}
|
||||
|
||||
goto_editor_window ();
|
||||
}
|
||||
|
||||
/** @param snap_name Snapshot name (without .ardour suffix).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue