From 0640adc271d8397051b8506f68f678fcde907335 Mon Sep 17 00:00:00 2001 From: Yari Polla Date: Fri, 10 Mar 2023 11:30:13 +0100 Subject: [PATCH] components/popupmenu: avoid showing maximised --- components/mobileshell/qml/components/PopupMenu.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/mobileshell/qml/components/PopupMenu.qml b/components/mobileshell/qml/components/PopupMenu.qml index 17120881..7a81772c 100644 --- a/components/mobileshell/qml/components/PopupMenu.qml +++ b/components/mobileshell/qml/components/PopupMenu.qml @@ -23,7 +23,6 @@ NanoShell.FullScreenOverlay { visible: false color: "transparent" - property point mappedGlobalCoordinates property Item relatedTo: null property string title @@ -31,7 +30,7 @@ NanoShell.FullScreenOverlay { function showOverlay() { if (!overlay.visible) { - overlay.showMaximized(); + overlay.visible = true; menu.open(); } } @@ -63,7 +62,7 @@ NanoShell.FullScreenOverlay { title: overlay.title closePolicy: PlasmaComponents.Menu.CloseOnReleaseOutside | PlasmaComponents.Menu.CloseOnEscape - onClosed: overlay.hide() + onClosed: overlay.close() Component.onCompleted: { for (var i = 0; i < menuActions.length; i++) {