Move process to root of powerbutton
This commit is contained in:
@@ -11,17 +11,20 @@ Item {
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
implicitWidth: parent.height
|
implicitWidth: parent.height
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
acceptedButtons: Qt.LeftButton
|
|
||||||
onPressed: (event) => {
|
|
||||||
powermenu.exec({});
|
|
||||||
}
|
|
||||||
Process {
|
Process {
|
||||||
id: powermenu
|
id: powermenu
|
||||||
running: false
|
running: false
|
||||||
command: [ "wlogout" ]
|
command: [ "wlogout" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
acceptedButtons: Qt.LeftButton
|
||||||
|
onPressed: (event) => {
|
||||||
|
if (!powermenu.running){
|
||||||
|
powermenu.exec({});
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MaterialSymbol {
|
MaterialSymbol {
|
||||||
|
|||||||
Reference in New Issue
Block a user