networking: refresh on connect (#21691)

* takes a while to refresh connecting to known network

* no need to refresh an
old-commit-hash: 85c3cbd7baa24eec28ef2eee74b5d6c9210a84c4
This commit is contained in:
sshane
2021-07-23 16:12:01 -07:00
committed by GitHub
parent 5a240419e6
commit 133926efb3
+1
View File
@@ -77,6 +77,7 @@ void Networking::refresh() {
void Networking::connectToNetwork(const Network &n) {
if (wifi->isKnownConnection(n.ssid)) {
wifi->activateWifiConnection(n.ssid);
wifiWidget->refresh();
} else if (n.security_type == SecurityType::OPEN) {
wifi->connect(n);
} else if (n.security_type == SecurityType::WPA) {