Unwrap argument list when calling IdleTimeout function.
This prevented update_downloads_list() from cleaning up the download list when finished, due to can_call_cleanup being set to ().
This commit is contained in:
parent
26c0f8dad8
commit
60b3ba6093
|
@ -1341,7 +1341,7 @@ class IdleTimeout(object):
|
|||
|
||||
def _callback(self, *args):
|
||||
self.cancel()
|
||||
if self.func(args):
|
||||
if self.func(*args):
|
||||
from gi.repository import GLib
|
||||
self.id = GLib.timeout_add(self.milliseconds, self._callback, *args)
|
||||
|
||||
|
|
Loading…
Reference in New Issue