forked from cromer/pamac-classic
wait 30 seconds before check updates
This commit is contained in:
parent
4cc4e1dc64
commit
1094cc0164
@ -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);
|
||||||
|
// wait 30 seconds before check updates
|
||||||
|
Timeout.add_seconds (30, () => {
|
||||||
check_updates ();
|
check_updates ();
|
||||||
|
return false;
|
||||||
|
});
|
||||||
launch_refresh_timeout (pamac_config.refresh_period);
|
launch_refresh_timeout (pamac_config.refresh_period);
|
||||||
|
|
||||||
this.hold ();
|
this.hold ();
|
||||||
|
Loading…
Reference in New Issue
Block a user