Skip to content

Commit

Permalink
SystemUpdate: Don't auto update on a metered connection
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Sep 18, 2024
1 parent eb1690e commit 28902cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Backends/SystemUpdate.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 28902cd

Please sign in to comment.