only change notetype/deck when reopening if no changes to discard (#3798)

This commit is contained in:
llama 2025-02-09 20:58:21 +08:00 committed by GitHub
parent dda5973fdc
commit 01c4b48c7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
)