mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-06 11:45:15 +00:00
feat(StatusPopupMenu): introduce closeHandler
hook
This enables us to predefine default close handlers for popup menus.
This commit is contained in:
parent
a1ecb77f19
commit
6276a789c3
@ -16,6 +16,13 @@ Menu {
|
||||
|
||||
property int menuItemCount: 0
|
||||
property var subMenuItemIcons: []
|
||||
property var closeHandler
|
||||
|
||||
onClosed: {
|
||||
if (typeof closeHandler === "function") {
|
||||
closeHandler()
|
||||
}
|
||||
}
|
||||
|
||||
delegate: MenuItem {
|
||||
id: statusPopupMenuItem
|
||||
|
Loading…
x
Reference in New Issue
Block a user