fix(ags): icons not working on audio module

This commit is contained in:
matt1432 2023-09-12 14:06:12 -04:00
parent 30438dca07
commit 0cb9f81277

View file

@ -22,9 +22,10 @@ const SpeakerIndicator = params => Icon({
}
else {
const vol = Audio.speaker.volume * 100;
for (const threshold of [100, 66, 33, 0, -1]) {
if (vol > threshold + 1)
for (const threshold of [-1, 0, 33, 66, 100]) {
if (vol > threshold + 1) {
icon.icon = items[threshold + 1];
}
}
}
}