mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 13:56:05 +02:00
IDE: invalidate file state cache on rename/copy interactive
git-svn-id: trunk@39057 -
This commit is contained in:
parent
3c263bbbaa
commit
e8cc088974
@ -134,6 +134,8 @@ begin
|
||||
end;
|
||||
repeat
|
||||
if FileProcs.RenameFileUTF8(SrcFilename,DestFilename) then begin
|
||||
InvalidateFileStateCache(SrcFilename);
|
||||
InvalidateFileStateCache(DestFilename);
|
||||
break;
|
||||
end else begin
|
||||
DlgButtons:=[mbCancel,mbRetry]+ExtraButtons;
|
||||
@ -161,6 +163,7 @@ begin
|
||||
end;
|
||||
repeat
|
||||
if CopyFile(SrcFilename,DestFilename) then begin
|
||||
InvalidateFileStateCache(DestFilename);
|
||||
break;
|
||||
end else begin
|
||||
DlgButtons:=[mbCancel,mbRetry]+ExtraButtons;
|
||||
|
Loading…
Reference in New Issue
Block a user