Skip to content

Commit ef4bb12

Browse files
committed
Add FileSystemWatcher to Watcherlist
1 parent 80eb0e4 commit ef4bb12

File tree

1 file changed

+2
-0
lines changed
  • Plugins/Flow.Launcher.Plugin.Program/Programs

1 file changed

+2
-0
lines changed

Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,8 @@ public static void WatchDirectory(string directory)
609609
watcher.Deleted += static (_, _) => indexQueue.Writer.TryWrite(default);
610610
watcher.EnableRaisingEvents = true;
611611
watcher.IncludeSubdirectories = true;
612+
613+
Watchers.Add(watcher);
612614
}
613615

614616
public static void Dispose()

0 commit comments

Comments
 (0)