Wi-Fi: connect and disconnect toast messages
This commit is contained in:
parent
fb2c5e0470
commit
57b0fe8a21
1 changed files with 4 additions and 2 deletions
|
|
@ -491,7 +491,8 @@ Singleton {
|
||||||
|
|
||||||
root.connecting = false
|
root.connecting = false
|
||||||
root.connectingTo = ""
|
root.connectingTo = ""
|
||||||
Logger.log("Network", `Connected to network: "${connectProcess.ssid}"`)
|
Logger.log("Network", `Connected to network: '${connectProcess.ssid}'`)
|
||||||
|
ToastService.showNotice("Wi-Fi", `Connected to '${connectProcess.ssid}'`)
|
||||||
|
|
||||||
// Still do a scan to get accurate signal and security info
|
// Still do a scan to get accurate signal and security info
|
||||||
delayedScanTimer.interval = 5000
|
delayedScanTimer.interval = 5000
|
||||||
|
|
@ -531,7 +532,8 @@ Singleton {
|
||||||
|
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
onStreamFinished: {
|
onStreamFinished: {
|
||||||
Logger.log("Network", `Disconnected from network: "${disconnectProcess.ssid}"`)
|
Logger.log("Network", `Disconnected from network: '${disconnectProcess.ssid}'`)
|
||||||
|
ToastService.showNotice("Wi-Fi", `Disconnected from '${disconnectProcess.ssid}'`)
|
||||||
|
|
||||||
// Immediately update UI on successful disconnect
|
// Immediately update UI on successful disconnect
|
||||||
root.updateNetworkStatus(disconnectProcess.ssid, false)
|
root.updateNetworkStatus(disconnectProcess.ssid, false)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue