fix order
This commit is contained in:
parent
342742b730
commit
5fc7211adb
|
@ -94,14 +94,14 @@ export class UserNotificationService {
|
||||||
let settings = this.toolsService.getSettings();
|
let settings = this.toolsService.getSettings();
|
||||||
let soundId = settings.notificationSoundFileId;
|
let soundId = settings.notificationSoundFileId;
|
||||||
|
|
||||||
if(this.soundFileId === soundId) return;
|
|
||||||
|
|
||||||
if(!soundId){
|
if(!soundId){
|
||||||
soundId = '0';
|
soundId = '0';
|
||||||
settings.notificationSoundFileId = '0';
|
settings.notificationSoundFileId = '0';
|
||||||
this.toolsService.saveSettings(settings);
|
this.toolsService.saveSettings(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(this.soundFileId === soundId) return;
|
||||||
|
|
||||||
var sound = this.getAllNotificationSounds().find(x => x.id === soundId);
|
var sound = this.getAllNotificationSounds().find(x => x.id === soundId);
|
||||||
this.sound = new Howl({
|
this.sound = new Howl({
|
||||||
src: [sound.path]
|
src: [sound.path]
|
||||||
|
|
Loading…
Reference in New Issue