wait 30 seconds before check updates

This commit is contained in:
guinux 2017-08-04 14:56:08 +02:00
parent 4cc4e1dc64
commit 1094cc0164

View File

@ -269,7 +269,11 @@ namespace Pamac {
lockfile = GLib.File.new_for_path ("var/lib/pacman/db.lck"); lockfile = GLib.File.new_for_path ("var/lib/pacman/db.lck");
} }
Timeout.add (200, check_extern_lock); 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); launch_refresh_timeout (pamac_config.refresh_period);
this.hold (); this.hold ();