[gnome-software] gs-update-monitor: Unconditionally refresh when using Mogwai



commit a19715f1d881c0031a1fdf801594e62700bbac63
Author: Philip Withnall <withnall endlessm com>
Date:   Sat Mar 16 17:03:23 2019 +0000

    gs-update-monitor: Unconditionally refresh when using Mogwai
    
    The downloads themselves will be gated by the metered data scheduler, so
    the metadata updates can happen regardless.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 src/gs-update-monitor.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index 084fbf70..ffb314bb 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -772,8 +772,12 @@ check_updates (GsUpdateMonitor *monitor)
        /* check for language pack */
        check_language_pack (monitor);
 
+#ifdef HAVE_MOGWAI
+       refresh_on_metered = TRUE;
+#else
        refresh_on_metered = g_settings_get_boolean (monitor->settings,
                                                     "refresh-when-metered");
+#endif
 
        if (!refresh_on_metered &&
            gs_plugin_loader_get_network_metered (monitor->plugin_loader))


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