mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
add mac test script, fix record snd option
This commit is contained in:
parent
6fa64e0458
commit
559a896f24
2 changed files with 9 additions and 1 deletions
|
@ -600,10 +600,11 @@ class FactEditor(object):
|
||||||
w.insertHtml('[sound:%s]' % path)
|
w.insertHtml('[sound:%s]' % path)
|
||||||
|
|
||||||
def onRecSound(self):
|
def onRecSound(self):
|
||||||
|
self.initMedia()
|
||||||
w = self.focusedEdit()
|
w = self.focusedEdit()
|
||||||
file = getAudio(self.parent)
|
file = getAudio(self.parent)
|
||||||
if file:
|
if file:
|
||||||
self._addSound(file, widget=w)
|
self._addSound(unicode(file), widget=w)
|
||||||
|
|
||||||
class FactEdit(QTextEdit):
|
class FactEdit(QTextEdit):
|
||||||
|
|
||||||
|
|
7
mac/test.sh
Executable file
7
mac/test.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd /Volumes/Two/anki
|
||||||
|
echo "syncing updates..."
|
||||||
|
rsync -av reflex:Lib/code/libanki --exclude .git --exclude build --exclude dist --delete .
|
||||||
|
rsync -av reflex:Lib/code/ankiqt --exclude .git --exclude build --exclude dist --delete .
|
||||||
|
./ankiqt/anki
|
Loading…
Reference in a new issue