mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Hide menus icons size option under Qt
This commit is contained in:
parent
ae48e071ca
commit
ecf3b8196a
2 changed files with 7 additions and 0 deletions
|
|
@ -149,6 +149,10 @@ var
|
|||
AIconSize: String;
|
||||
begin
|
||||
inherited Init;
|
||||
// Qt bindings support only 16px icons for menu items
|
||||
{$IF DEFINED(LCLQT5) OR DEFINED(LCLQT6)}
|
||||
cbIconsInMenusSize.Visible:= False;
|
||||
{$ENDIF}
|
||||
for I:= Low(ICON_SIZES) to High(ICON_SIZES) do
|
||||
begin
|
||||
AIconSize:= IntToStr(ICON_SIZES[I]) + 'x' + IntToStr(ICON_SIZES[I]);
|
||||
|
|
|
|||
|
|
@ -3273,7 +3273,10 @@ begin
|
|||
end;
|
||||
gCustomIcons := TCustomIconsMode(GetValue(Node, 'CustomIcons', Integer(gCustomIcons)));
|
||||
gIconsInMenus := GetAttr(Node, 'ShowInMenus/Enabled', gIconsInMenus);
|
||||
// Qt bindings support only 16px icons for menu items
|
||||
{$IF NOT (DEFINED(LCLQT5) OR DEFINED(LCLQT6))}
|
||||
gIconsInMenusSize := GetValue(Node, 'ShowInMenus/Size', gIconsInMenusSize);
|
||||
{$ENDIF}
|
||||
if gIconsInMenus then
|
||||
Application.ShowMenuGlyphs:= sbgAlways
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue