From 0cb9f81277268313d6009fd78939481d5e3cd040 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Tue, 12 Sep 2023 14:06:12 -0400 Subject: [PATCH] fix(ags): icons not working on audio module --- config/ags/js/bar/audio.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/ags/js/bar/audio.js b/config/ags/js/bar/audio.js index 62a00d0..4f90b2d 100644 --- a/config/ags/js/bar/audio.js +++ b/config/ags/js/bar/audio.js @@ -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]; + } } } }