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



commit 4a61725ccb1a9a45d7b991c29827a238dcacd564
Author: Kalev Lember <klember redhat com>
Date:   Tue Feb 20 01:25:56 2018 +0100

    Revert "Fix first run dialog racing with gnome-software shell startup"
    
    This caused the first run dialog to appear when gnome-software starts in
    the background with 'gnome-software --gapplication-service'.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1546893
    
    This reverts commit 3516c0fc8e271c8e8fbe1cf151447c5067d260e7.

 src/gs-application.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index d2b18515..85b966e4 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -249,7 +249,6 @@ 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,6 +958,8 @@ 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]