now able to set sounds again

This commit is contained in:
MathMan05 2024-08-08 15:15:46 -05:00
parent 86c038ec57
commit 21caf6ad1d
2 changed files with 17 additions and 0 deletions

View file

@ -725,6 +725,14 @@ class Localuser{
setTheme();
},themes,{defaultIndex:themes.indexOf(localStorage.getItem("theme"))});
}
{
const sounds=Voice.sounds;
tas.addSelect("Notification sound:",_=>{
Voice.setNotificationSound(sounds[_]);
},sounds,{defaultIndex:sounds.indexOf(Voice.getNotificationSound())}).watchForChange(_=>{
Voice.noises(sounds[_]);
})
}
}
settings.show();
}