mirror of
https://github.com/ankitects/anki.git
synced 2025-11-14 00:27:13 -05:00
fix resetRequired state getting stuck
This commit is contained in:
parent
2dcb86e4ac
commit
a13b539819
1 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,6 @@ config = aqt.config
|
||||||
|
|
||||||
## fixme: open plugin folder broken on win32?
|
## fixme: open plugin folder broken on win32?
|
||||||
|
|
||||||
## fixme: new deck, cloze & cardlayout, gets stuck in resetRequired state
|
|
||||||
## models remembering the previous group
|
## models remembering the previous group
|
||||||
|
|
||||||
class AnkiQt(QMainWindow):
|
class AnkiQt(QMainWindow):
|
||||||
|
|
@ -159,6 +158,7 @@ class AnkiQt(QMainWindow):
|
||||||
self.reset()
|
self.reset()
|
||||||
|
|
||||||
def _resetRequiredState(self, oldState):
|
def _resetRequiredState(self, oldState):
|
||||||
|
if oldState != "resetRequired":
|
||||||
self.returnState = oldState
|
self.returnState = oldState
|
||||||
if self.resetModal:
|
if self.resetModal:
|
||||||
# we don't have to change the webview, as we have a covering window
|
# we don't have to change the webview, as we have a covering window
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue