13
0

Do not unconditionally show splash screen

This commit is contained in:
Robin Gareus 2021-07-07 01:02:13 +02:00
parent 8607a6ef8d
commit e4bdb99f60
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 5 additions and 3 deletions

View File

@ -2960,7 +2960,9 @@ what you would like to do.\n"), PROGRAM_NAME));
image->show();
hbox->show();
if (Splash::exists ()) {
Splash::instance()->hide ();
}
switch (dialog.run ()) {
case RESPONSE_ACCEPT:

View File

@ -51,7 +51,7 @@ Message::run ()
{
bool splash_pushed = false;
Splash* spl = Splash::instance();
Splash* spl = Splash::exists () ? Splash::instance() : NULL;
if (spl && spl->is_visible()) {
spl->pop_back_for (_message_dialog);
splash_pushed = true;
@ -61,7 +61,7 @@ Message::run ()
_message_dialog.hide ();
if (splash_pushed) {
spl = Splash::instance();
spl = Splash::exists () ? Splash::instance() : NULL;
if (spl) {
spl->pop_front_for (_message_dialog);
}