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)
|
recordNoiseProfile(self)
|
||||||
|
|
||||||
def onSoundQueued(self):
|
def onSoundQueued(self):
|
||||||
if sys.platform.startswith("darwin"):
|
pass
|
||||||
# because the gui doesn't return focus, manually focus anki again
|
# this doesn't work
|
||||||
t = QTimer(self)
|
# if sys.platform.startswith("darwin"):
|
||||||
t.setSingleShot(True)
|
# # because the gui doesn't return focus, manually focus anki again
|
||||||
t.start(1000)
|
# t = QTimer(self)
|
||||||
self.connect(t, SIGNAL("timeout()"),
|
# t.setSingleShot(True)
|
||||||
self.onSoundTimer)
|
# t.start(1000)
|
||||||
|
# self.connect(t, SIGNAL("timeout()"),
|
||||||
|
# self.onSoundTimer)
|
||||||
|
|
||||||
def onSoundTimer(self):
|
def onSoundTimer(self):
|
||||||
self.activateWindow()
|
self.activateWindow()
|
||||||
|
|
Loading…
Reference in a new issue