Bug 1152926 - New mail sound preview doesn't work for default system sound on Mac OS X. r=aleth
This commit is contained in:
Родитель
ecf2da3e06
Коммит
7a3ca3a235
|
@ -110,12 +110,16 @@ var gGeneralPane = {
|
|||
|
||||
var soundLocation;
|
||||
soundLocation = document.getElementById('soundType').value == 1 ?
|
||||
document.getElementById('soundUrlLocation').value : "_moz_mailbeep"
|
||||
document.getElementById('soundUrlLocation').value : "";
|
||||
|
||||
if (!soundLocation.contains("file://"))
|
||||
sound.playSystemSound(soundLocation);
|
||||
else
|
||||
if (!soundLocation.contains("file://")) {
|
||||
if (Services.appinfo.OS == "Darwin") // OS X
|
||||
sound.beep();
|
||||
else
|
||||
sound.playEventSound(Components.interfaces.nsISound.EVENT_NEW_MAIL_RECEIVED);
|
||||
} else {
|
||||
sound.play(Services.io.newURI(soundLocation, null, null));
|
||||
}
|
||||
},
|
||||
|
||||
browseForSoundFile: function ()
|
||||
|
|
Загрузка…
Ссылка в новой задаче