mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 03:56:12 +02:00
educationlaz: hiding menu items only wehn enabled
git-svn-id: trunk@22242 -
This commit is contained in:
parent
5ea22214c6
commit
048a50846a
@ -416,9 +416,16 @@ procedure TEduMenuOptions.Apply(Enable: boolean);
|
||||
Section: TIDEMenuSection;
|
||||
i: Integer;
|
||||
begin
|
||||
if (not KeepItemVisible(Item)) and MenuHidden[MenuItemToPath(Item)] then
|
||||
Item.Visible:=false;
|
||||
// Note: do not show items. Some items should be hidden independent of education.
|
||||
if (not KeepItemVisible(Item)) then begin
|
||||
if Enable then begin
|
||||
if MenuHidden[MenuItemToPath(Item)] then
|
||||
Item.Visible:=false;
|
||||
// Note: do not show items. Some items should be hidden independent of education.
|
||||
end else begin
|
||||
if MenuHidden[MenuItemToPath(Item)] then
|
||||
Item.Visible:=true;
|
||||
end;
|
||||
end;
|
||||
if Item is TIDEMenuSection then begin
|
||||
Section:=TIDEMenuSection(Item);
|
||||
for i:=0 to Section.Count-1 do
|
||||
|
Loading…
Reference in New Issue
Block a user