mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
Prevent "Shorcut key: " appearing multiple times in tooltips
This commit is contained in:
parent
e40445a9c4
commit
4c43fcfe4e
1 changed files with 3 additions and 1 deletions
|
@ -10,6 +10,7 @@ from anki.errors import DeckRenameError
|
||||||
import aqt
|
import aqt
|
||||||
from anki.sound import clearAudioQueue
|
from anki.sound import clearAudioQueue
|
||||||
from anki.hooks import runHook
|
from anki.hooks import runHook
|
||||||
|
from copy import deepcopy
|
||||||
|
|
||||||
class DeckBrowser:
|
class DeckBrowser:
|
||||||
|
|
||||||
|
@ -340,7 +341,8 @@ where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
|
||||||
|
|
||||||
def _drawButtons(self):
|
def _drawButtons(self):
|
||||||
buf = ""
|
buf = ""
|
||||||
for b in self.drawLinks:
|
drawLinks = deepcopy(self.drawLinks)
|
||||||
|
for b in drawLinks:
|
||||||
if b[0]:
|
if b[0]:
|
||||||
b[0] = _("Shortcut key: %s") % shortcut(b[0])
|
b[0] = _("Shortcut key: %s") % shortcut(b[0])
|
||||||
buf += """
|
buf += """
|
||||||
|
|
Loading…
Reference in a new issue