Skip to content

Commit

Permalink
SystemUpdate: Don't auto update on a metered connection (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 authored Oct 8, 2024
1 parent e15fb0f commit 157ffd0
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 @@ -119,7 +119,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 157ffd0

Please sign in to comment.