[gimp/gimp-2-10] app: also properly check updates for "source" platform family.



commit 7809cbf09dd370a4a443f924a0e7e5c6bf01fea8
Author: Jehan <jehan girinstud io>
Date:   Mon Sep 5 16:39:28 2022 +0200

    app: also properly check updates for "source" platform family.
    
    I.e. non-macOS and non-Windows. For these, we don't really care about
    the startup check usually (which is normally disabled anyway, at least
    as a default), but we still care about the version check to work when
    explicitly requested through the "About" dialog's button.

 app/gimp-update.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/app/gimp-update.c b/app/gimp-update.c
index 7b7f4aeac9..d164ecfabf 100644
--- a/app/gimp-update.c
+++ b/app/gimp-update.c
@@ -305,7 +305,8 @@ gimp_check_updates_process (const gchar    *source,
               build = json_array_get_object_element (builds, j);
               if (json_object_has_member (build, "build-id"))
                 build_id = json_object_get_string_member (build, "build-id");
-              if (g_strcmp0 (build_id, GIMP_BUILD_ID) == 0)
+              if (g_strcmp0 (build_id, GIMP_BUILD_ID) == 0 ||
+                  g_strcmp0 (platform, "source") == 0)
                 {
                   /* Release date is the build date if any set,
                     * otherwise the main version release date.


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