[gnome-software/wip/jrocha/updates-monitor-with-allow-updates: 2/2] Fix the behavior when live changing the "allow-updates" setting



commit caedb8036fdb17333b8ad756e3dbfd8395a7ad6f
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Mon Oct 31 14:27:29 2016 +0100

    Fix the behavior when live changing the "allow-updates" setting
    
    A g_strcmp0 was being used incorrectly and thus it would not correctly
    behave when the mentioned setting changed.

 src/gs-plugin-loader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index f727ff7..d4223d8 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -4390,7 +4390,7 @@ gs_plugin_loader_settings_changed_cb (GSettings *settings,
                                      const gchar *key,
                                      GsPluginLoader *plugin_loader)
 {
-       if (g_strcmp0 (key, "allow-updates"))
+       if (g_strcmp0 (key, "allow-updates") == 0)
                gs_plugin_loader_allow_updates_recheck (plugin_loader);
 }
 


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