enable the new deck options by default

- The old options are still available with a shift+click
- Translations still need updating
- See b7747b6a38 for some examples
of extending the screen in an add-on
This commit is contained in:
Damien Elmes 2021-04-25 19:58:58 +10:00
parent 56800737e6
commit eb3f3ddd45

View File

@ -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</button>""" % (
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()