[gimp] app: check if both restored and initialized flags are set to determine…



commit 4473951d4b58bd4d058ad044f245ffe590ea8ab1
Author: Jehan <jehan girinstud io>
Date:   Sat Mar 12 17:22:57 2022 +0100

    app: check if both restored and initialized flags are set to determine…
    
    … whether the program is really ready to accept various commands.
    
    In particular, on macOS, one could drop an image to the app icon in the
    dock while starting up (visible splash). Then if the profile convert
    dialog appears *behind* the splash, it would block loading until an
    action is taken (unfortunately as it's hidden, people may miss it and
    would think GIMP froze), as reported by cyril and reproduced by lukaso.
    
    I can't test myself, but I'm hoping this will fix the issue (similar to
    commit a86ed68870b where we had a similar issue with dbus file opening
    on Linux).

 app/core/gimp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/core/gimp.c b/app/core/gimp.c
index 97042d07d9..1040670d0e 100644
--- a/app/core/gimp.c
+++ b/app/core/gimp.c
@@ -876,7 +876,7 @@ gimp_is_restored (Gimp *gimp)
 {
   g_return_val_if_fail (GIMP_IS_GIMP (gimp), FALSE);
 
-  return gimp->restored;
+  return gimp->initialized && gimp->restored;
 }
 
 /**


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