[gnome-software: 1/2] gs-update-monitor: Check for updates if no longer metered
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/2] gs-update-monitor: Check for updates if no longer metered
- Date: Fri, 4 Mar 2022 13:55:40 +0000 (UTC)
commit 333b740ade5d127503f88404ddc48fa393158c14
Author: Philip Withnall <pwithnall endlessos org>
Date: Fri Mar 4 12:24:08 2022 +0000
gs-update-monitor: Check for updates if no longer metered
If the network connection was metered, gnome-software might have skipped
checking for updates during that period. Check to see if a full update
check is needed when a connection is no longer metered.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
src/gs-update-monitor.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index 2780f9ac6..8c1f1daf2 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -1284,6 +1284,9 @@ gs_update_monitor_network_changed_cb (GNetworkMonitor *network_monitor,
g_cancellable_cancel (monitor->refresh_cancellable);
g_object_unref (monitor->refresh_cancellable);
monitor->refresh_cancellable = g_cancellable_new ();
+ } else {
+ /* Else, it might be time to check for updates */
+ check_updates (monitor);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]