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