From 28902cd0320caacd8dac907d059b87241204f363 Mon Sep 17 00:00:00 2001 From: Leonhard Kargl Date: Wed, 18 Sep 2024 23:40:43 +0200 Subject: [PATCH] SystemUpdate: Don't auto update on a metered connection --- src/Backends/SystemUpdate.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backends/SystemUpdate.vala b/src/Backends/SystemUpdate.vala index 674dc14b..2914c6d5 100644 --- a/src/Backends/SystemUpdate.vala +++ b/src/Backends/SystemUpdate.vala @@ -108,7 +108,7 @@ public class SettingsDaemon.Backends.SystemUpdate : Object { update_state (AVAILABLE); - if (!force && settings.get_boolean ("automatic-updates")) { + if (!force && !NetworkMonitor.get_default ().network_metered && settings.get_boolean ("automatic-updates")) { update.begin (); return; }