Merge pull request #1177 from abdnh/strip-isolation-chars

Strip Unicode isolation characters from title
This commit is contained in:
Damien Elmes 2021-05-20 11:49:41 +10:00 committed by GitHub
commit fe20f3abaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
from __future__ import annotations
import aqt
from anki.lang import without_unicode_isolation
from aqt import gui_hooks
from aqt.qt import *
from aqt.utils import addCloseShortcut, disable_help_button, restoreGeom, saveGeom, tr
@ -43,7 +44,9 @@ class DeckOptionsDialog(QDialog):
f"""const $deckOptions = anki.deckOptions(
document.getElementById('main'), {deck.id});"""
)
self.setWindowTitle(tr.actions_options_for(val=deck.name))
self.setWindowTitle(
without_unicode_isolation(tr.actions_options_for(val=deck.name))
)
gui_hooks.deck_options_did_load(self)
def reject(self) -> None: