mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 15:20:49 +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;
|
end;
|
||||||
repeat
|
repeat
|
||||||
if FileProcs.RenameFileUTF8(SrcFilename,DestFilename) then begin
|
if FileProcs.RenameFileUTF8(SrcFilename,DestFilename) then begin
|
||||||
|
InvalidateFileStateCache(SrcFilename);
|
||||||
|
InvalidateFileStateCache(DestFilename);
|
||||||
break;
|
break;
|
||||||
end else begin
|
end else begin
|
||||||
DlgButtons:=[mbCancel,mbRetry]+ExtraButtons;
|
DlgButtons:=[mbCancel,mbRetry]+ExtraButtons;
|
||||||
@ -161,6 +163,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
repeat
|
repeat
|
||||||
if CopyFile(SrcFilename,DestFilename) then begin
|
if CopyFile(SrcFilename,DestFilename) then begin
|
||||||
|
InvalidateFileStateCache(DestFilename);
|
||||||
break;
|
break;
|
||||||
end else begin
|
end else begin
|
||||||
DlgButtons:=[mbCancel,mbRetry]+ExtraButtons;
|
DlgButtons:=[mbCancel,mbRetry]+ExtraButtons;
|
||||||
|
Loading…
Reference in New Issue
Block a user