mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 18:42:07 +08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user