mirror of https://github.com/buggins/dlangui.git
Merge branch 'master' of github.com:buggins/dlangui
This commit is contained in:
commit
4e2addbcd0
|
@ -211,7 +211,7 @@ class MenuItem {
|
||||||
}
|
}
|
||||||
/// returns item label
|
/// returns item label
|
||||||
@property UIString label() {
|
@property UIString label() {
|
||||||
return _action.labelValue;
|
return _action !is null ? _action.labelValue : UIString("");
|
||||||
}
|
}
|
||||||
/// returns item action
|
/// returns item action
|
||||||
@property const(Action) action() const { return _action; }
|
@property const(Action) action() const { return _action; }
|
||||||
|
@ -372,7 +372,7 @@ class MenuItemWidget : WidgetGroupDefaultDrawing {
|
||||||
_item = item;
|
_item = item;
|
||||||
styleId = STYLE_MENU_ITEM;
|
styleId = STYLE_MENU_ITEM;
|
||||||
updateState();
|
updateState();
|
||||||
string iconId = _item.action.iconId;
|
string iconId = _item.action !is null ? _item.action.iconId : "";
|
||||||
if (_item.type == MenuItemType.Check)
|
if (_item.type == MenuItemType.Check)
|
||||||
iconId = "btn_check";
|
iconId = "btn_check";
|
||||||
else if (_item.type == MenuItemType.Radio)
|
else if (_item.type == MenuItemType.Radio)
|
||||||
|
|
Loading…
Reference in New Issue