mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 10:55:55 +02:00
parent
5f4c6b579f
commit
595dd727a8
@ -5014,6 +5014,7 @@ begin
|
||||
// get final filename
|
||||
NewFilename:=NewSource.Filename;
|
||||
NewFilePath:=ExtractFilePath(NewFilename);
|
||||
EnvironmentOptions.RemoveFromRecentOpenFiles(OldFilename);
|
||||
EnvironmentOptions.AddToRecentOpenFiles(NewFilename);
|
||||
SetRecentFilesMenu;
|
||||
|
||||
@ -7393,6 +7394,14 @@ begin
|
||||
Result:=mrOk;
|
||||
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)
|
||||
CloseUnitComponent(ActiveUnitInfo,[]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user