mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 09:48:50 +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
|
visible: false
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
|
|
||||||
property point mappedGlobalCoordinates
|
property point mappedGlobalCoordinates
|
||||||
property Item relatedTo: null
|
property Item relatedTo: null
|
||||||
property string title
|
property string title
|
||||||
|
|
@ -31,7 +30,7 @@ NanoShell.FullScreenOverlay {
|
||||||
|
|
||||||
function showOverlay() {
|
function showOverlay() {
|
||||||
if (!overlay.visible) {
|
if (!overlay.visible) {
|
||||||
overlay.showMaximized();
|
overlay.visible = true;
|
||||||
menu.open();
|
menu.open();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -63,7 +62,7 @@ NanoShell.FullScreenOverlay {
|
||||||
title: overlay.title
|
title: overlay.title
|
||||||
closePolicy: PlasmaComponents.Menu.CloseOnReleaseOutside | PlasmaComponents.Menu.CloseOnEscape
|
closePolicy: PlasmaComponents.Menu.CloseOnReleaseOutside | PlasmaComponents.Menu.CloseOnEscape
|
||||||
|
|
||||||
onClosed: overlay.hide()
|
onClosed: overlay.close()
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
for (var i = 0; i < menuActions.length; i++) {
|
for (var i = 0; i < menuActions.length; i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue