[gnome-builder] update-manager: remove update notification



commit 251cb54c2dd57a814bd44848a0a3000b2be785ef
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 16 19:06:32 2020 -0800

    update-manager: remove update notification

 src/plugins/update-manager/gbp-update-manager-app-addin.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/update-manager/gbp-update-manager-app-addin.c 
b/src/plugins/update-manager/gbp-update-manager-app-addin.c
index a596877f4..e792684be 100644
--- a/src/plugins/update-manager/gbp-update-manager-app-addin.c
+++ b/src/plugins/update-manager/gbp-update-manager-app-addin.c
@@ -52,15 +52,22 @@ on_update_install_cb (GObject      *object,
   g_assert (G_IS_ASYNC_RESULT (result));
   g_assert (GBP_IS_UPDATE_MANAGER_APP_ADDIN (self));
 
-  if (!xdp_portal_update_install_finish (portal, result, &error))
-    g_warning ("Failed to update Builder: %s", error->message);
-
   if (self->progress_notif)
     {
       ide_notification_withdraw_in_seconds (self->progress_notif, -1);
       g_clear_object (&self->progress_notif);
     }
 
+  if (!xdp_portal_update_install_finish (portal, result, &error))
+    {
+      g_warning ("Failed to update Builder: %s", error->message);
+    }
+  else
+    {
+      ide_notification_withdraw (self->update_notif);
+      g_clear_object (&self->update_notif);
+    }
+
   IDE_EXIT;
 }
 


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