Skip to content

Commit

Permalink
Client: Trigger auto-updates when opening the app (#1811)
Browse files Browse the repository at this point in the history
  • Loading branch information
meisenzahl authored Jan 24, 2022
1 parent eaf515e commit 20da490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Client.vala
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public class AppCenterCore.Client : Object {
});

if (nm.get_network_available ()) {
if (last_cache_update_is_old && AppCenter.App.settings.get_boolean ("automatic-updates")) {
if ((force || last_cache_update_is_old) && AppCenter.App.settings.get_boolean ("automatic-updates")) {
yield refresh_updates ();
debug ("Update Flatpaks");
var installed_apps = yield FlatpakBackend.get_default ().get_installed_applications (cancellable);
Expand Down

0 comments on commit 20da490

Please sign in to comment.