fix menu Process objects: declare as properties for PopupPanel compat
This commit is contained in:
parent
fd71211176
commit
36d187e251
2 changed files with 5 additions and 5 deletions
|
|
@ -10,7 +10,7 @@ M.PopupPanel {
|
||||||
|
|
||||||
property var _devices: []
|
property var _devices: []
|
||||||
|
|
||||||
Process {
|
property Process _scanner: Process {
|
||||||
id: scanner
|
id: scanner
|
||||||
running: true
|
running: true
|
||||||
command: ["sh", "-c",
|
command: ["sh", "-c",
|
||||||
|
|
@ -46,7 +46,7 @@ M.PopupPanel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Process {
|
property Process _toggleProc: Process {
|
||||||
id: toggleProc
|
id: toggleProc
|
||||||
property string action: ""
|
property string action: ""
|
||||||
property string mac: ""
|
property string mac: ""
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ M.PopupPanel {
|
||||||
|
|
||||||
property var _networks: []
|
property var _networks: []
|
||||||
|
|
||||||
Process {
|
property Process _scanner: Process {
|
||||||
id: scanner
|
id: scanner
|
||||||
running: true
|
running: true
|
||||||
command: ["sh", "-c",
|
command: ["sh", "-c",
|
||||||
|
|
@ -68,14 +68,14 @@ M.PopupPanel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Process {
|
property Process _connectProc: Process {
|
||||||
id: connectProc
|
id: connectProc
|
||||||
property string uuid: ""
|
property string uuid: ""
|
||||||
command: ["nmcli", "connection", "up", uuid]
|
command: ["nmcli", "connection", "up", uuid]
|
||||||
onRunningChanged: if (!running) scanner.running = true
|
onRunningChanged: if (!running) scanner.running = true
|
||||||
}
|
}
|
||||||
|
|
||||||
Process {
|
property Process _disconnectProc: Process {
|
||||||
id: disconnectProc
|
id: disconnectProc
|
||||||
property string uuid: ""
|
property string uuid: ""
|
||||||
command: ["nmcli", "connection", "down", uuid]
|
command: ["nmcli", "connection", "down", uuid]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue