Merge pull request #2055 from boyzhirui/master

Fix the sound recorder issue #2054
upd4.2
Jens Mönig 2018-03-13 07:42:49 +01:00 zatwierdzone przez GitHub
commit 83c54ca207
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 0 usunięć

5
gui.js
Wyświetl plik

@ -9116,6 +9116,11 @@ SoundRecorderDialogMorph.prototype.buildProgressBar = function () {
};
SoundRecorderDialogMorph.prototype.record = function () {
if (this.mediaRecorder && this.mediaRecorder.state !== 'inactive') {
this.stop();
return;
}
this.mediaRecorder.start();
this.recordButton.label.setColor(new Color(255, 0, 0));
this.playButton.label.setColor(new Color(0, 0, 0));