Merge pull request #1177 from abdnh/strip-isolation-chars
Strip Unicode isolation characters from title
This commit is contained in:
commit
fe20f3abaa
@ -4,6 +4,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import aqt
|
import aqt
|
||||||
|
from anki.lang import without_unicode_isolation
|
||||||
from aqt import gui_hooks
|
from aqt import gui_hooks
|
||||||
from aqt.qt import *
|
from aqt.qt import *
|
||||||
from aqt.utils import addCloseShortcut, disable_help_button, restoreGeom, saveGeom, tr
|
from aqt.utils import addCloseShortcut, disable_help_button, restoreGeom, saveGeom, tr
|
||||||
@ -43,7 +44,9 @@ class DeckOptionsDialog(QDialog):
|
|||||||
f"""const $deckOptions = anki.deckOptions(
|
f"""const $deckOptions = anki.deckOptions(
|
||||||
document.getElementById('main'), {deck.id});"""
|
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)
|
gui_hooks.deck_options_did_load(self)
|
||||||
|
|
||||||
def reject(self) -> None:
|
def reject(self) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user