mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add missing check for on_done==None in with_progress()
This commit is contained in:
parent
28ff061c19
commit
49a40e7178
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@ class TaskManager(QObject):
|
||||||
|
|
||||||
def wrapped_done(fut):
|
def wrapped_done(fut):
|
||||||
self.mw.progress.finish()
|
self.mw.progress.finish()
|
||||||
on_done(fut)
|
if on_done:
|
||||||
|
on_done(fut)
|
||||||
|
|
||||||
self.run_in_background(task, wrapped_done)
|
self.run_in_background(task, wrapped_done)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue