mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 02:40:03 +02:00
parent
5f4c6b579f
commit
595dd727a8
@ -5014,6 +5014,7 @@ begin
|
|||||||
// get final filename
|
// get final filename
|
||||||
NewFilename:=NewSource.Filename;
|
NewFilename:=NewSource.Filename;
|
||||||
NewFilePath:=ExtractFilePath(NewFilename);
|
NewFilePath:=ExtractFilePath(NewFilename);
|
||||||
|
EnvironmentOptions.RemoveFromRecentOpenFiles(OldFilename);
|
||||||
EnvironmentOptions.AddToRecentOpenFiles(NewFilename);
|
EnvironmentOptions.AddToRecentOpenFiles(NewFilename);
|
||||||
SetRecentFilesMenu;
|
SetRecentFilesMenu;
|
||||||
|
|
||||||
@ -7393,6 +7394,14 @@ begin
|
|||||||
Result:=mrOk;
|
Result:=mrOk;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
// add to recent file list
|
||||||
|
if (not ActiveUnitInfo.IsVirtual)
|
||||||
|
and (not (cfProjectClosing in Flags)) then
|
||||||
|
begin
|
||||||
|
EnvironmentOptions.AddToRecentOpenFiles(ActiveUnitInfo.Filename);
|
||||||
|
SetRecentFilesMenu;
|
||||||
|
end;
|
||||||
|
|
||||||
// close form soft (keep it if used by another component)
|
// close form soft (keep it if used by another component)
|
||||||
CloseUnitComponent(ActiveUnitInfo,[]);
|
CloseUnitComponent(ActiveUnitInfo,[]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user