mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix recent deck shortcuts
This commit is contained in:
parent
252534423c
commit
34177f0caa
1 changed files with 4 additions and 1 deletions
|
@ -538,7 +538,10 @@ class AnkiQt(QMainWindow):
|
|||
n = 1
|
||||
for file in self.config['recentDeckPaths']:
|
||||
a = QAction(self)
|
||||
a.setShortcut(_("Ctrl+%d" % n))
|
||||
if sys.platform.startswith("darwin"):
|
||||
a.setShortcut(_("Ctrl+Alt+%d" % n))
|
||||
else:
|
||||
a.setShortcut(_("Alt+%d" % n))
|
||||
a.setText(os.path.basename(file))
|
||||
a.setStatusTip(os.path.abspath(file))
|
||||
self.connect(a, SIGNAL("triggered()"),
|
||||
|
|
Loading…
Reference in a new issue