diff --git a/Terminal.Gui/Windows/FileDialog.cs b/Terminal.Gui/Windows/FileDialog.cs index 8e284dc0f..45727532c 100644 --- a/Terminal.Gui/Windows/FileDialog.cs +++ b/Terminal.Gui/Windows/FileDialog.cs @@ -51,6 +51,10 @@ namespace Terminal.Gui { bool valid = false; try { dirInfo = new DirectoryInfo (value == null ? directory.ToString () : value.ToString ()); + + // Dispose of the old watcher + watcher?.Dispose (); + watcher = new FileSystemWatcher (dirInfo.FullName); watcher.NotifyFilter = NotifyFilters.Attributes | NotifyFilters.CreationTime