mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 18:58:04 +02:00
ProjectGroups: show only existing project groups in recent menus
This commit is contained in:
parent
4afb03e646
commit
5d74e0475d
@ -625,13 +625,17 @@ end;
|
||||
|
||||
procedure TIDEProjectGroupManager.UpdateRecentProjectGroupMenu;
|
||||
var
|
||||
i: Integer;
|
||||
i, l: Integer;
|
||||
Item: TIDEMenuItem;
|
||||
aFilename: String;
|
||||
begin
|
||||
i:=0;
|
||||
while i<Options.RecentProjectGroups.Count do begin
|
||||
aFilename:=Options.RecentProjectGroups[i];
|
||||
l:=0;
|
||||
while l<Options.RecentProjectGroups.Count do begin
|
||||
aFilename:=Options.RecentProjectGroups[l];
|
||||
inc(l);
|
||||
if not FileExists(aFilename) then
|
||||
continue;
|
||||
if i<PGOpenRecentSubMenu.Count then begin
|
||||
Item:=PGOpenRecentSubMenu[i];
|
||||
Item.Caption:=aFilename;
|
||||
|
@ -1746,13 +1746,17 @@ end;
|
||||
|
||||
procedure TProjectGroupEditorForm.UpdateRecentProjectGroupMenu;
|
||||
var
|
||||
i: Integer;
|
||||
i, l: Integer;
|
||||
Item: TMenuItem;
|
||||
aFilename: String;
|
||||
begin
|
||||
i:=0;
|
||||
while i<IDEProjectGroupManager.Options.RecentProjectGroups.Count do begin
|
||||
aFilename:=IDEProjectGroupManager.Options.RecentProjectGroups[i];
|
||||
l:=0;
|
||||
while l<IDEProjectGroupManager.Options.RecentProjectGroups.Count do begin
|
||||
aFilename:=IDEProjectGroupManager.Options.RecentProjectGroups[l];
|
||||
inc(l);
|
||||
if not FileExists(aFilename) then
|
||||
continue;
|
||||
if i<PopupMenuOpen.Items.Count then begin
|
||||
Item:=PopupMenuOpen.Items[i];
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user