mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 12:00:02 +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;
|
Section: TIDEMenuSection;
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
if (not KeepItemVisible(Item)) and MenuHidden[MenuItemToPath(Item)] then
|
if (not KeepItemVisible(Item)) then begin
|
||||||
Item.Visible:=false;
|
if Enable then begin
|
||||||
// Note: do not show items. Some items should be hidden independent of education.
|
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
|
if Item is TIDEMenuSection then begin
|
||||||
Section:=TIDEMenuSection(Item);
|
Section:=TIDEMenuSection(Item);
|
||||||
for i:=0 to Section.Count-1 do
|
for i:=0 to Section.Count-1 do
|
||||||
|
Loading…
Reference in New Issue
Block a user