[gnome-software/gnome-3-22] Don't refresh flatpak remotes when an action is in progress



commit 328447cc34741f512ab2cd6b6205473eaca8e986
Author: Richard Hughes <richard hughsie com>
Date:   Tue Nov 29 16:16:04 2016 +0000

    Don't refresh flatpak remotes when an action is in progress

 src/plugins/gs-flatpak.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 616e1ee..44b41e9 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -113,6 +113,10 @@ gs_plugin_flatpak_changed_cb (GFileMonitor *monitor,
        g_autoptr(GError) error = NULL;
        g_autoptr(GError) error_md = NULL;
 
+       /* don't refresh when it's us ourselves doing the change */
+       if (gs_plugin_has_flags (self->plugin, GS_PLUGIN_FLAGS_RUNNING_SELF))
+               return;
+
        /* manually drop the cache */
        if (!flatpak_installation_drop_caches (self->installation,
                                               NULL, &error)) {


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