fix(ags): icons not working on audio module
This commit is contained in:
parent
30438dca07
commit
0cb9f81277
1 changed files with 3 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue