mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
Check col.db
This commit is contained in:
parent
c819762a08
commit
7783a7d701
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ class TaskManager(QObject):
|
|||
if on_done is not None:
|
||||
|
||||
def wrapped_done(future: Future) -> None:
|
||||
if uses_collection and not self.mw.col:
|
||||
if uses_collection and not (self.mw.col and self.mw.col.db):
|
||||
print(f"Ignored on_done as collection unloaded: {repr(on_done)}")
|
||||
return
|
||||
on_done(future)
|
||||
|
|
|
|||
Loading…
Reference in a new issue