From 21c16592dd6f2f6a5181be901985829b20c82371 Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 12 Apr 2026 11:45:16 +0200 Subject: [PATCH] fix fix menu attr --- modules/Tray.qml | 2 +- modules/TrayMenu.qml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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(); } } }