mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
only change notetype/deck when reopening if no changes to discard (#3798)
This commit is contained in:
parent
dda5973fdc
commit
01c4b48c7d
1 changed files with 3 additions and 0 deletions
|
@ -110,6 +110,9 @@ class AddCards(QMainWindow):
|
|||
)
|
||||
|
||||
def reopen(self, mw: AnkiQt) -> None:
|
||||
if not self.editor.fieldsAreBlank():
|
||||
return
|
||||
|
||||
defaults = self.col.defaults_for_adding(
|
||||
current_review_card=self.mw.reviewer.card
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue