From fe9647f863674159acb06330bc37fda737c26502 Mon Sep 17 00:00:00 2001 From: skidoodle Date: Fri, 8 Nov 2024 20:30:27 +0100 Subject: [PATCH] Update main.go --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d4bcc84..736b94f 100644 --- a/main.go +++ b/main.go @@ -237,7 +237,7 @@ func watchProfilesFile() { } if event.Op&fsnotify.Write == fsnotify.Write || event.Op&fsnotify.Create == fsnotify.Create { log.Println("Profiles file changed, reloading profiles...") - debounce.Stop() // Stop any running debounce timer + debounce.Stop() debounce = time.AfterFunc(500*time.Millisecond, func() { loadProfiles() for displayName, url := range profiles {