fix menu Process objects: declare as properties for PopupPanel compat

This commit is contained in:
Damocles 2026-04-12 18:28:52 +02:00
parent fd71211176
commit 36d187e251
2 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ M.PopupPanel {
property var _devices: []
Process {
property Process _scanner: Process {
id: scanner
running: true
command: ["sh", "-c",
@ -46,7 +46,7 @@ M.PopupPanel {
}
}
Process {
property Process _toggleProc: Process {
id: toggleProc
property string action: ""
property string mac: ""

View file

@ -10,7 +10,7 @@ M.PopupPanel {
property var _networks: []
Process {
property Process _scanner: Process {
id: scanner
running: true
command: ["sh", "-c",
@ -68,14 +68,14 @@ M.PopupPanel {
}
}
Process {
property Process _connectProc: Process {
id: connectProc
property string uuid: ""
command: ["nmcli", "connection", "up", uuid]
onRunningChanged: if (!running) scanner.running = true
}
Process {
property Process _disconnectProc: Process {
id: disconnectProc
property string uuid: ""
command: ["nmcli", "connection", "down", uuid]