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: []
|
||||
|
||||
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: ""
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue