TrayMenu: cleanup

This commit is contained in:
Ly-sec
2025-11-15 22:54:39 +01:00
parent e129da8f46
commit fc033081bd

View File

@@ -103,7 +103,6 @@ PopupWindow {
return
}
// IMPORTANT: Set the menu BEFORE loading items
if (!isSubMenu && trayItem && trayItem.menu) {
menu = trayItem.menu
}
@@ -148,11 +147,6 @@ PopupWindow {
hoverEnabled: true
}
Item {
anchors.fill: parent
Keys.onEscapePressed: root.hideMenu()
}
QsMenuOpener {
id: opener
menu: root.menu