[gnome-builder] flatpak: update title immediately



commit 7a3ea975bd196de74349c4a993e121b79a0617d3
Author: Christian Hergert <chergert redhat com>
Date:   Wed Mar 13 23:16:07 2019 -0700

    flatpak: update title immediately
    
    We don't necessarily get updates to other fields in the view,
    so make sure we have something immediately.

 src/plugins/flatpak/gbp-flatpak-transfer.c | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/flatpak/gbp-flatpak-transfer.c b/src/plugins/flatpak/gbp-flatpak-transfer.c
index 4a4ef344c..7b477ab56 100644
--- a/src/plugins/flatpak/gbp-flatpak-transfer.c
+++ b/src/plugins/flatpak/gbp-flatpak-transfer.c
@@ -390,15 +390,20 @@ gbp_flatpak_transfer_new (const gchar *id,
                           const gchar *branch,
                           gboolean     force_update)
 {
+  GbpFlatpakTransfer *ret;
+
   g_return_val_if_fail (id != NULL, NULL);
 
   if (arch == NULL)
     arch = flatpak_get_default_arch ();
 
-  return g_object_new (GBP_TYPE_FLATPAK_TRANSFER,
-                       "id", id,
-                       "arch", arch,
-                       "branch", branch,
-                       "force-update", force_update,
-                       NULL);
+  ret = g_object_new (GBP_TYPE_FLATPAK_TRANSFER,
+                      "id", id,
+                      "arch", arch,
+                      "branch", branch,
+                      "force-update", force_update,
+                      NULL);
+  gbp_flatpak_transfer_update_title (ret);
+
+  return ret;
 }


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