mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
reset conf after edit current
This commit is contained in:
parent
27f08a463a
commit
dd0a6563e7
2 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,8 @@ class EditCurrent(QDialog):
|
||||||
r = self.mw.reviewer
|
r = self.mw.reviewer
|
||||||
r.card.load()
|
r.card.load()
|
||||||
r.keep = True
|
r.keep = True
|
||||||
|
# we don't need to reset the deck, but there may be new groups
|
||||||
|
self.mw.deck.sched._resetConf()
|
||||||
self.mw.moveToState("review")
|
self.mw.moveToState("review")
|
||||||
saveGeom(self, "editcurrent")
|
saveGeom(self, "editcurrent")
|
||||||
self.close()
|
self.close()
|
||||||
|
|
|
@ -27,6 +27,9 @@ 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
|
||||||
|
|
||||||
class AnkiQt(QMainWindow):
|
class AnkiQt(QMainWindow):
|
||||||
def __init__(self, app, config, args, splash):
|
def __init__(self, app, config, args, splash):
|
||||||
QMainWindow.__init__(self)
|
QMainWindow.__init__(self)
|
||||||
|
|
Loading…
Reference in a new issue