mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
disable 'record noise profile' on osx
This commit is contained in:
parent
3274e143ea
commit
182c3688e6
1 changed files with 3 additions and 1 deletions
|
@ -43,9 +43,9 @@ class AnkiQt(QMainWindow):
|
||||||
self.setLang()
|
self.setLang()
|
||||||
self.setupDocumentDir()
|
self.setupDocumentDir()
|
||||||
self.setupFonts()
|
self.setupFonts()
|
||||||
self.setupSound()
|
|
||||||
self.setupBackupDir()
|
self.setupBackupDir()
|
||||||
self.setupMainWindow()
|
self.setupMainWindow()
|
||||||
|
self.setupSound()
|
||||||
self.alterShortcuts()
|
self.alterShortcuts()
|
||||||
self.setupTray()
|
self.setupTray()
|
||||||
self.connectMenuActions()
|
self.connectMenuActions()
|
||||||
|
@ -1916,6 +1916,8 @@ day = :d""", d=yesterday)
|
||||||
self.config.configPath, "noise.profile").\
|
self.config.configPath, "noise.profile").\
|
||||||
encode(sys.getfilesystemencoding())
|
encode(sys.getfilesystemencoding())
|
||||||
anki.sound.checkForNoiseProfile()
|
anki.sound.checkForNoiseProfile()
|
||||||
|
if sys.platform.startswith("darwin"):
|
||||||
|
self.mainWin.actionRecordNoiseProfile.setEnabled(False)
|
||||||
|
|
||||||
def onRepeatAudio(self):
|
def onRepeatAudio(self):
|
||||||
playFromText(self.currentCard.question)
|
playFromText(self.currentCard.question)
|
||||||
|
|
Loading…
Reference in a new issue