summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-04-26 13:03:47 +0200
committerRobin Gareus <robin@gareus.org>2016-04-26 13:03:47 +0200
commitf8e05b6be32f146256dcbc10d08eebdb17e9fde1 (patch)
tree1facb0b5553215839646e3cdd0dcc2fbb23f62fa
parent01286b442ee2e09472aebe8491b2755c82f07e44 (diff)
remove the splash-screen when changing sessions
ARDOUR_UI::load_session()'s loading_message() shows the splash in all cases. But only the initial ARDOUR_UI::starting() does destroy it. In some cases we got away because the Engine Dialog pops back the splash and the dialog is never destroyed (only hidden). It's not until ~Dialog that the splash is displayed again (if it exists).
-rw-r--r--gtk2_ardour/ardour_ui.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 006f0616f3..cd2411430e 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -1714,6 +1714,10 @@ ARDOUR_UI::open_recent_session ()
can_return = false;
}
+ if (splash && splash->is_visible()) {
+ // in 1 second, hide the splash screen
+ Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 1000);
+ }
}
bool
@@ -3272,6 +3276,10 @@ ARDOUR_UI::close_session()
if (get_session_parameters (true, false)) {
exit (1);
}
+ if (splash && splash->is_visible()) {
+ // in 1 second, hide the splash screen
+ Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 1000);
+ }
}
/** @param snap_name Snapshot name (without .ardour suffix).