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



commit a5ac9a559ca9178e252591d7568daaff452d5e18
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 9cc67f0..0e99ed1 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -149,6 +149,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]