mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix error when unsetting browser appearance
This commit is contained in:
parent
012d63f882
commit
9902e21cba
1 changed files with 3 additions and 2 deletions
|
@ -464,8 +464,9 @@ adjust the template manually to switch the question and answer."""))
|
||||||
t['bfont'] = f.font.currentFont().family()
|
t['bfont'] = f.font.currentFont().family()
|
||||||
t['bsize'] = f.fontSize.value()
|
t['bsize'] = f.fontSize.value()
|
||||||
else:
|
else:
|
||||||
del t['bfont']
|
for key in ("bfont", "bsize"):
|
||||||
del t['bsize']
|
if key in t:
|
||||||
|
del t[key]
|
||||||
|
|
||||||
def onTargetDeck(self):
|
def onTargetDeck(self):
|
||||||
from aqt.tagedit import TagEdit
|
from aqt.tagedit import TagEdit
|
||||||
|
|
Loading…
Reference in a new issue