diff --git a/addon/card_layout.py b/addon/card_layout.py
index e4b3a53..b3d08e3 100644
--- a/addon/card_layout.py
+++ b/addon/card_layout.py
@@ -20,8 +20,8 @@ def CardLayout_init_hook(self, mw: AnkiQt, note: Note, *args, **kwargs):
"You are able to edit the template for the note type by editing the corresponding HTML and CSS files inside the add-on directory.\n\n"
"Do you want to open that directory now?\n\n"
"Note: If you edit the templates be aware that updates to the add-on will overwrite those files.",
- QMessageBox.StandardButton.Yes | QMessageBox.No,
- QMessageBox.No,
+ QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No,
+ QMessageBox.StandardButton.No,
)
if r == QMessageBox.StandardButton.Yes:
aqt.utils.openFolder(util.addon_path("web"))
diff --git a/addon/settings_window.py b/addon/settings_window.py
index c4dc1fd..a154ee7 100644
--- a/addon/settings_window.py
+++ b/addon/settings_window.py
@@ -203,8 +203,8 @@ def on_reset_marked_known(self):
"Migaku Kanji",
f"Do you really want to reset kanji marked known for {self.card_type.label}?
"
"They will not be recoverable.",
- QMessageBox.StandardButton.Yes | QMessageBox.No,
- QMessageBox.No,
+ QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No,
+ QMessageBox.StandardButton.No,
)
if r != QMessageBox.StandardButton.Yes:
return
@@ -456,8 +456,8 @@ def on_reset_db(self):
"Do you really want to reset the Migaku Kanji Database?
"
"All kanji manually marked known, custom stories and keywords will be lost!
"
"Kanji cards and their progress will remain.",
- QMessageBox.StandardButton.Yes | QMessageBox.No,
- QMessageBox.No,
+ QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No,
+ QMessageBox.StandardButton.No,
)
if r != QMessageBox.StandardButton.Yes:
return
@@ -472,8 +472,8 @@ def on_reset_custom_keywords(self):
"Migaku Kanji",
"Do you really want to reset all custom keywords?
"
"They will not be recoverable.",
- QMessageBox.StandardButton.Yes | QMessageBox.No,
- QMessageBox.No,
+ QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No,
+ QMessageBox.StandardButton.No,
)
if r != QMessageBox.StandardButton.Yes:
return
@@ -486,8 +486,8 @@ def on_reset_custom_stories(self):
"Migaku Kanji",
"Do you really want to reset all custom stories?
"
"They will not be recoverable.",
- QMessageBox.StandardButton.Yes | QMessageBox.No,
- QMessageBox.No,
+ QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No,
+ QMessageBox.StandardButton.No,
)
if r != QMessageBox.StandardButton.Yes:
return