[gnome-software] Fix first run dialog racing with gnome-software shell startup



commit 3516c0fc8e271c8e8fbe1cf151447c5067d260e7
Author: Kalev Lember <klember redhat com>
Date:   Fri Jan 26 13:08:44 2018 +0100

    Fix first run dialog racing with gnome-software shell startup
    
    gnome-software shell clears out all modal dialogs during its startup.
    This causes the first run dialog to instantly disappear as the shell
    usually takes longer time to load than the dialog.
    
    To fix this, this commit moves the first run dialog to start in a
    callback, after the shell has finished loading.

 src/gs-application.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index f80bb4d2..7b2dfdad 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -250,6 +250,7 @@ gs_application_shell_loaded_cb (GsShell *shell, GsApplication *app)
 {
        gs_shell_set_mode (app->shell, GS_SHELL_MODE_OVERVIEW);
        app->shell_loaded_handler_id = 0;
+       gs_application_show_first_run_dialog (app);
 }
 
 static void
@@ -959,8 +960,6 @@ gs_application_activate (GApplication *application)
                gs_shell_set_mode (app->shell, GS_SHELL_MODE_OVERVIEW);
 
        gs_shell_activate (GS_APPLICATION (application)->shell);
-
-       gs_application_show_first_run_dialog (GS_APPLICATION (application));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]