mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-01 21:42:58 +01:00
IDEIntf: menuintf: fixed hiding existing MenuItems
git-svn-id: trunk@53109 -
This commit is contained in:
parent
b40800c317
commit
8a18022cc5
@ -1090,6 +1090,7 @@ var
|
||||
then begin
|
||||
// already in place -> ok
|
||||
inc(aMenuIndex);
|
||||
Item.Visible:=aVisible;
|
||||
end else begin
|
||||
// structure has changed
|
||||
if Item.MenuItem<>nil then
|
||||
@ -1282,7 +1283,7 @@ begin
|
||||
UpdateVisibleCommandCount(AddedVisibleCommands);
|
||||
|
||||
{$IFDEF VerboseMenuIntf}
|
||||
debugln(['TIDEMenuSection.Insert AAA3 Self="',Name,'" Item="',AnItem.Name,'" VisibleActive=',VisibleActive,' VisibleCommandCount=',VisibleCommandCount,' MenuItem=',DbgSName(MenuItem)]);
|
||||
debugln(['TIDEMenuSection.Insert END Self="',Name,'" Item="',AnItem.Name,'" VisibleActive=',VisibleActive,' VisibleCommandCount=',VisibleCommandCount,' MenuItem=',DbgSName(MenuItem)]);
|
||||
ConsistencyCheck;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user