13
0

Show the splash-screen if the engine dialog's run() hid it.

This commit is contained in:
Robin Gareus 2017-04-20 23:16:09 +02:00
parent 057bb167ca
commit e1c4fe8edc
2 changed files with 5 additions and 1 deletions

View File

@ -49,11 +49,13 @@ public:
void on_show (); void on_show ();
virtual void on_response (int); virtual void on_response (int);
protected:
void pop_splash ();
private: private:
WM::ProxyTemporary* proxy; WM::ProxyTemporary* proxy;
bool _splash_pushed; bool _splash_pushed;
void init (); void init ();
void pop_splash ();
static sigc::signal<void> CloseAllDialogs; static sigc::signal<void> CloseAllDialogs;
}; };

View File

@ -2670,6 +2670,7 @@ EngineControl::start_stop_button_clicked ()
ARDOUR::AudioEngine::instance()->stop (); ARDOUR::AudioEngine::instance()->stop ();
} else { } else {
if (!ARDOUR_UI::instance()->session_loaded) { if (!ARDOUR_UI::instance()->session_loaded) {
pop_splash ();
hide (); hide ();
ARDOUR::GUIIdle (); ARDOUR::GUIIdle ();
} }
@ -3084,6 +3085,7 @@ EngineControl::connect_disconnect_click()
stop_engine (); stop_engine ();
} else { } else {
if (!ARDOUR_UI::instance()->session_loaded) { if (!ARDOUR_UI::instance()->session_loaded) {
pop_splash ();
hide (); hide ();
ARDOUR::GUIIdle (); ARDOUR::GUIIdle ();
} }