Added ability to disable menu hiding from items in easy way.
This commit is contained in:
parent
7d9c442ca9
commit
8618812fd6
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ rpl::producer<CallbackData> ItemBase::clicks() const {
|
||||||
AbstractButton::clicks() | rpl::to_empty,
|
AbstractButton::clicks() | rpl::to_empty,
|
||||||
_clicks.events()
|
_clicks.events()
|
||||||
) | rpl::filter([=] {
|
) | rpl::filter([=] {
|
||||||
return isEnabled();
|
return isEnabled() && !AbstractButton::isDisabled();
|
||||||
}) | rpl::map([=]() -> CallbackData {
|
}) | rpl::map([=]() -> CallbackData {
|
||||||
return { action(), y(), _lastTriggeredSource, _index, true };
|
return { action(), y(), _lastTriggeredSource, _index, true };
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue