mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
components/popupmenu: avoid showing maximised
This commit is contained in:
parent
a353e87e47
commit
0640adc271
1 changed files with 2 additions and 3 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue