diff --git a/qt/aqt/deckoptions.py b/qt/aqt/deckoptions.py index 574b2bfca..7515e8433 100644 --- a/qt/aqt/deckoptions.py +++ b/qt/aqt/deckoptions.py @@ -6,7 +6,7 @@ from __future__ import annotations import aqt from aqt import gui_hooks from aqt.qt import * -from aqt.utils import addCloseShortcut, disable_help_button, restoreGeom, saveGeom +from aqt.utils import addCloseShortcut, disable_help_button, restoreGeom, saveGeom, tr from aqt.webview import AnkiWebView @@ -38,11 +38,12 @@ class DeckOptionsDialog(QDialog): layout.addWidget(self.web) self.setLayout(layout) - deck_id = self.mw.col.decks.get_current_id() + deck = self.mw.col.decks.get_current() self.web.eval( f"""const $deckOptions = anki.deckOptions( - document.getElementById('main'), {deck_id});""" + document.getElementById('main'), {deck.id});""" ) + self.setWindowTitle(tr.actions_options_for(val=deck.name)) gui_hooks.deck_options_did_load(self) def reject(self) -> None: diff --git a/ts/components/StickyBar.svelte b/ts/components/StickyBar.svelte index f16d76300..bb480698f 100644 --- a/ts/components/StickyBar.svelte +++ b/ts/components/StickyBar.svelte @@ -21,6 +21,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html } -