Skip to content

Commit

Permalink
Fix checkConfigDiff timer causing infinite profile switch loop
Browse files Browse the repository at this point in the history
  • Loading branch information
SaifAqqad committed Jun 29, 2024
1 parent 63d71ef commit 935769d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/MicMute.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,6 @@ initilizeMicMute(default_profile:="", exportConfig:=1){
if(exportConfig)
config_obj.exportConfig()

;enable linked apps timer
SetTimer, checkLinkedApps, % watched_profiles.Length()? 3000 : "Off"
;enable checkConfigDiff timer
setTimer, checkConfigDiff, 3000

;update theme variables
updateSysTheme()
if(config_obj.AllowUpdateChecker==-1){
Expand All @@ -213,6 +208,11 @@ initilizeMicMute(default_profile:="", exportConfig:=1){
;switch to the default profile
switchProfile(default_profile)

;enable linked apps timer
SetTimer, checkLinkedApps, % watched_profiles.Length()? 3000 : "Off"
;enable checkConfigDiff timer
setTimer, checkConfigDiff, 3000

if(auraServiceEnabled)
SetTimer, initAuraService, -20
}
Expand Down

0 comments on commit 935769d

Please sign in to comment.