mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 12:09:21 +02:00
IDE: small optimization when adding example files to recent files list.
git-svn-id: trunk@32004 -
This commit is contained in:
parent
6f3b1db700
commit
dc58625e58
@ -927,7 +927,6 @@ var
|
|||||||
WholeFilePath: String;
|
WholeFilePath: String;
|
||||||
begin
|
begin
|
||||||
aProjPath:=SwitchPathDelims(aProjPath, True);
|
aProjPath:=SwitchPathDelims(aProjPath, True);
|
||||||
aProjFile:=SwitchPathDelims(aProjFile, True);
|
|
||||||
WholeFilePath:=ExtractFilePath(Application.ExeName) + aProjPath + aProjFile;
|
WholeFilePath:=ExtractFilePath(Application.ExeName) + aProjPath + aProjFile;
|
||||||
if FileIsWritable(aProjPath) and FileIsWritable(WholeFilePath) then
|
if FileIsWritable(aProjPath) and FileIsWritable(WholeFilePath) then
|
||||||
AddToRecentList(WholeFilePath, FRecentProjectFiles, FMaxRecentProjectFiles);
|
AddToRecentList(WholeFilePath, FRecentProjectFiles, FMaxRecentProjectFiles);
|
||||||
|
Loading…
Reference in New Issue
Block a user