Verified Commit fd16264c authored by ivan tkachenko's avatar ivan tkachenko
Browse files

applets/kickoff: Prevent empty menu from opening

BUG: 455927
FIXED-IN: 5.24
(cherry picked from commit b8e7acf8)
parent ab44fbe2
Pipeline #197220 failed with stage
in 3 minutes and 51 seconds
......@@ -69,12 +69,14 @@ T.ItemDelegate {
}
root.actionList = allActions
}
ActionMenu.plasmoid = plasmoid
ActionMenu.menu.visualParent = root
if (x !== undefined && y !== undefined) {
ActionMenu.menu.open(x, y)
} else {
ActionMenu.menu.openRelative()
if (actionList && actionList.length > 0) {
ActionMenu.plasmoid = plasmoid
ActionMenu.menu.visualParent = root
if (x !== undefined && y !== undefined) {
ActionMenu.menu.open(x, y)
} else {
ActionMenu.menu.openRelative()
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment