mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
only reset() if there's an active deck
This commit is contained in:
parent
3bfb60c757
commit
ef5e94db9e
1 changed files with 4 additions and 3 deletions
|
@ -133,6 +133,7 @@ class AnkiQt(QMainWindow):
|
||||||
|
|
||||||
def reset(self, type="all", *args):
|
def reset(self, type="all", *args):
|
||||||
"Called for non-trivial edits. Rebuilds queue and updates UI."
|
"Called for non-trivial edits. Rebuilds queue and updates UI."
|
||||||
|
if self.deck:
|
||||||
self.deck.reset()
|
self.deck.reset()
|
||||||
runHook("reset")
|
runHook("reset")
|
||||||
self.moveToState(self.state)
|
self.moveToState(self.state)
|
||||||
|
|
Loading…
Reference in a new issue