Move process to root of powerbutton

This commit is contained in:
2025-09-27 21:36:26 -04:00
parent 78d96977f3
commit 22bfb00eb2

View File

@@ -11,16 +11,19 @@ Item {
height: parent.height
implicitWidth: parent.height
Process {
id: powermenu
running: false
command: [ "wlogout" ]
}
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton
onPressed: (event) => {
powermenu.exec({});
}
Process {
id: powermenu
running: false
command: [ "wlogout" ]
if (!powermenu.running){
powermenu.exec({});
}
}
}