Skip to content

Commit 935769d

Browse files
committed
Fix checkConfigDiff timer causing infinite profile switch loop
1 parent 63d71ef commit 935769d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/MicMute.ahk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,6 @@ initilizeMicMute(default_profile:="", exportConfig:=1){
188188
if(exportConfig)
189189
config_obj.exportConfig()
190190

191-
;enable linked apps timer
192-
SetTimer, checkLinkedApps, % watched_profiles.Length()? 3000 : "Off"
193-
;enable checkConfigDiff timer
194-
setTimer, checkConfigDiff, 3000
195-
196191
;update theme variables
197192
updateSysTheme()
198193
if(config_obj.AllowUpdateChecker==-1){
@@ -213,6 +208,11 @@ initilizeMicMute(default_profile:="", exportConfig:=1){
213208
;switch to the default profile
214209
switchProfile(default_profile)
215210

211+
;enable linked apps timer
212+
SetTimer, checkLinkedApps, % watched_profiles.Length()? 3000 : "Off"
213+
;enable checkConfigDiff timer
214+
setTimer, checkConfigDiff, 3000
215+
216216
if(auraServiceEnabled)
217217
SetTimer, initAuraService, -20
218218
}

0 commit comments

Comments
 (0)