mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
no need to alter shortcuts anymore
This commit is contained in:
parent
ad80548f19
commit
ed86beceb7
1 changed files with 0 additions and 7 deletions
|
@ -1483,7 +1483,6 @@ day = :d""", d=yesterday)
|
|||
self.installTranslation()
|
||||
if getattr(self, 'mainWin', None):
|
||||
self.mainWin.retranslateUi(self)
|
||||
self.alterShortcuts()
|
||||
anki.lang.setLang(self.config["interfaceLang"], local=False)
|
||||
self.updateTitleBar()
|
||||
|
||||
|
@ -2095,14 +2094,8 @@ Consider backing up your media directory first."""))
|
|||
|
||||
def setupSystemHacks(self):
|
||||
self.setupDocumentDir()
|
||||
self.alterShortcuts()
|
||||
self.changeLayoutSpacing()
|
||||
|
||||
def alterShortcuts(self):
|
||||
if sys.platform.startswith("darwin"):
|
||||
self.mainWin.actionAddcards.setShortcut(_("Ctrl+D"))
|
||||
self.mainWin.actionClose.setShortcut("")
|
||||
|
||||
def setupDocumentDir(self):
|
||||
if sys.platform.startswith("win32"):
|
||||
s = QSettings(QSettings.UserScope, "Microsoft", "Windows")
|
||||
|
|
Loading…
Reference in a new issue