Clear Watcher collection on Unload

This commit is contained in:
Flowaria authored and Cameron Ewell committed 2025-12-29 22:38:01 -05:00
1 parent f645826a81
commit b7af29b7ef
1 file changed
+2
@@ -138,6 +138,8 @@ internal sealed class MainThreadedFileSystemWatcher : IDisposable
void ILoadable.Unload()
{
Main.OnTickForThirdPartySoftwareOnly -= Tick;
_WatchersList?.Clear();
_Watchers = [];
}
private void Tick()