diff --git a/src/tray.vala b/src/tray.vala index 4e43154..e8c6cb0 100644 --- a/src/tray.vala +++ b/src/tray.vala @@ -269,7 +269,11 @@ namespace Pamac { lockfile = GLib.File.new_for_path ("var/lib/pacman/db.lck"); } Timeout.add (200, check_extern_lock); - check_updates (); + // wait 30 seconds before check updates + Timeout.add_seconds (30, () => { + check_updates (); + return false; + }); launch_refresh_timeout (pamac_config.refresh_period); this.hold ();