mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add record icon, more win32 path issues
This commit is contained in:
parent
23c2b6617d
commit
3274e143ea
3 changed files with 7 additions and 2 deletions
|
@ -1913,7 +1913,8 @@ day = :d""", d=yesterday)
|
||||||
|
|
||||||
def setupSound(self):
|
def setupSound(self):
|
||||||
anki.sound.noiseProfile = os.path.join(
|
anki.sound.noiseProfile = os.path.join(
|
||||||
self.config.configPath, "noise.profile")
|
self.config.configPath, "noise.profile").\
|
||||||
|
encode(sys.getfilesystemencoding())
|
||||||
anki.sound.checkForNoiseProfile()
|
anki.sound.checkForNoiseProfile()
|
||||||
|
|
||||||
def onRepeatAudio(self):
|
def onRepeatAudio(self):
|
||||||
|
|
|
@ -52,5 +52,5 @@ def recordNoiseProfile(parent):
|
||||||
QApplication.instance().processEvents()
|
QApplication.instance().processEvents()
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
r.stop()
|
r.stop()
|
||||||
generateNoiseProfile(r.wavFile())
|
generateNoiseProfile()
|
||||||
mb.deleteLater()
|
mb.deleteLater()
|
||||||
|
|
|
@ -1865,6 +1865,10 @@
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionRecordNoiseProfile" >
|
<action name="actionRecordNoiseProfile" >
|
||||||
|
<property name="icon" >
|
||||||
|
<iconset resource="../icons.qrc" >
|
||||||
|
<normaloff>:/icons/media-record.png</normaloff>:/icons/media-record.png</iconset>
|
||||||
|
</property>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>&Record Noise Profile...</string>
|
<string>&Record Noise Profile...</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
Loading…
Reference in a new issue