From eb3f3ddd4560926ae02076027c9e5f06bfae9eea Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 25 Apr 2021 19:58:58 +1000 Subject: [PATCH] enable the new deck options by default - The old options are still available with a shift+click - Translations still need updating - See b7747b6a383ada9368a6dfa85ac5a1d555883eed for some examples of extending the screen in an add-on --- qt/aqt/main.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 74801e742..256640528 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -48,6 +48,7 @@ from anki.utils import devMode, ids2str, intTime, isMac, isWin, splitFields from aqt import gui_hooks from aqt.addons import DownloadLogEntry, check_and_prompt_for_updates, show_log_to_user from aqt.dbcheck import check_db +from aqt.deckoptions import DeckOptionsDialog from aqt.emptycards import show_empty_cards from aqt.legacy import install_pylib_legacy from aqt.mediacheck import check_media_db @@ -1172,12 +1173,10 @@ title="%s" %s>%s""" % ( if deck["dyn"]: aqt.dialogs.open("FilteredDeckConfigDialog", self, deck_id=deck["id"]) else: - if os.getenv("NEW_DECKCONF"): - from aqt.deckoptions import DeckOptionsDialog - - DeckOptionsDialog(self) - else: + if KeyboardModifiersPressed().shift: aqt.deckconf.DeckConf(self, deck) + else: + DeckOptionsDialog(self) def onOverview(self) -> None: self.col.reset()