mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
don't use same card if priority == 0, ensure same card in browser too
This commit is contained in:
parent
39588816b6
commit
8cd6692c84
2 changed files with 6 additions and 1 deletions
|
@ -646,7 +646,10 @@ class EditDeck(QMainWindow):
|
|||
saveHeader(self.dialog.tableView.horizontalHeader(), "editor")
|
||||
self.hide()
|
||||
ui.dialogs.close("CardList")
|
||||
self.parent.moveToState("auto")
|
||||
if self.parent.currentCard:
|
||||
self.parent.moveToState("showQuestion")
|
||||
else:
|
||||
self.parent.moveToState("auto")
|
||||
self.teardownHooks()
|
||||
return True
|
||||
|
||||
|
|
|
@ -332,6 +332,8 @@ Please do not file a bug report with Anki.<br>""")
|
|||
self.editor.saveFieldsNow()
|
||||
self.mainWin.buttonStack.show()
|
||||
self.deck.refresh()
|
||||
if self.currentCard.priority == 0:
|
||||
return self.moveToState("auto")
|
||||
return self.moveToState("showQuestion")
|
||||
elif state == "studyScreen":
|
||||
self.currentCard = None
|
||||
|
|
Loading…
Reference in a new issue