mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: the issue of calling TFileSystemWatcher.RemoveWatch() @ 3ecba99
This commit is contained in:
parent
3ecba99193
commit
8b70e6bb1b
1 changed files with 4 additions and 2 deletions
|
|
@ -3371,8 +3371,10 @@ begin
|
|||
end
|
||||
else
|
||||
begin
|
||||
realPath:= (FileSource as TFileSystemFileSource).GetRealPath(FWatchPath);
|
||||
TFileSystemWatcher.RemoveWatch(realPath, @WatcherEvent);
|
||||
if FileSource.IsClass(TFileSystemFileSource) then begin
|
||||
realPath:= (FileSource as TFileSystemFileSource).GetRealPath(FWatchPath);
|
||||
TFileSystemWatcher.RemoveWatch(realPath, @WatcherEvent);
|
||||
end;
|
||||
FWatchPath := EmptyStr;
|
||||
end;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue