diff --git a/modules/Tray.qml b/modules/Tray.qml index d3bf5aa..544fb15 100644 --- a/modules/Tray.qml +++ b/modules/Tray.qml @@ -64,7 +64,7 @@ RowLayout { handle: iconItem.modelData.menu screen: root.bar.screen anchorX: iconItem.mapToGlobal(iconItem.width / 2, 0).x - onClosed: menuLoader.active = false + onMenuClosed: menuLoader.active = false } } } diff --git a/modules/TrayMenu.qml b/modules/TrayMenu.qml index f2a1669..d22ada4 100644 --- a/modules/TrayMenu.qml +++ b/modules/TrayMenu.qml @@ -17,7 +17,7 @@ PanelWindow { // Global x of the icon center (from mapToGlobal), used to position the panel required property real anchorX - signal closed() + signal menuClosed() color: "transparent" @@ -34,7 +34,7 @@ PanelWindow { // Click outside the menu panel → dismiss MouseArea { anchors.fill: parent - onClicked: menuWindow.closed() + onClicked: menuWindow.menuClosed() } // Menu panel @@ -67,7 +67,7 @@ PanelWindow { StackView { id: menuStack - width: currentItem ? currentItem.implicitWidth : 0 + width: currentItem ? currentItem.width : 0 height: currentItem ? currentItem.implicitHeight : 0 // Push the root page once the stack is ready @@ -92,7 +92,7 @@ PanelWindow { required property QsMenuHandle handle property bool isRoot: false - implicitWidth: 220 + width: 220 topPadding: 4 bottomPadding: 4 spacing: 2 @@ -222,7 +222,7 @@ PanelWindow { }, StackView.Immediate); } else { entryItem.modelData.triggered(); - menuWindow.closed(); + menuWindow.menuClosed(); } } }