mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
remove broken osx code
This commit is contained in:
parent
0c7405fa0d
commit
ad4cff620a
1 changed files with 9 additions and 7 deletions
|
@ -2512,13 +2512,15 @@ it to your friends.
|
|||
recordNoiseProfile(self)
|
||||
|
||||
def onSoundQueued(self):
|
||||
if sys.platform.startswith("darwin"):
|
||||
# because the gui doesn't return focus, manually focus anki again
|
||||
t = QTimer(self)
|
||||
t.setSingleShot(True)
|
||||
t.start(1000)
|
||||
self.connect(t, SIGNAL("timeout()"),
|
||||
self.onSoundTimer)
|
||||
pass
|
||||
# this doesn't work
|
||||
# if sys.platform.startswith("darwin"):
|
||||
# # because the gui doesn't return focus, manually focus anki again
|
||||
# t = QTimer(self)
|
||||
# t.setSingleShot(True)
|
||||
# t.start(1000)
|
||||
# self.connect(t, SIGNAL("timeout()"),
|
||||
# self.onSoundTimer)
|
||||
|
||||
def onSoundTimer(self):
|
||||
self.activateWindow()
|
||||
|
|
Loading…
Reference in a new issue