From a5965c65f33b58b889e8af846688ee350f4baa96 Mon Sep 17 00:00:00 2001 From: Saif Alaqqad Date: Sat, 23 Dec 2023 10:51:06 +0300 Subject: [PATCH] Fix Aura Pause tray action not resetting the RGB when unchecked --- src/MicMute.ahk | 8 ++++++++ src/UI/Tray.ahk | 1 + 2 files changed, 9 insertions(+) diff --git a/src/MicMute.ahk b/src/MicMute.ahk index 2424842..40bcba7 100644 --- a/src/MicMute.ahk +++ b/src/MicMute.ahk @@ -486,6 +486,14 @@ onUpdateState(microphone){ } } +updateMicrophonesState(){ + if(mic_controllers){ + for _i, mic in mic_controllers{ + onUpdateState(mic) + } + } +} + updateSysTheme(_wParam:="", lParam:=""){ if(!lParam || StrGet(lParam) == "ImmersiveColorSet"){ themes:= util_getSystemTheme() diff --git a/src/UI/Tray.ahk b/src/UI/Tray.ahk index e849cbb..3459eae 100644 --- a/src/UI/Tray.ahk +++ b/src/UI/Tray.ahk @@ -121,6 +121,7 @@ tray_toggleAuraSyncPause(){ } else { AuraSyncAction.ServiceEnabled := true Menu, auraSync, Uncheck, Pause + SetTimer, updateMicrophonesState, -1000 } }