fix(wifi): enable connection to open wifis
This commit is contained in:
parent
cd55e4761e
commit
fe928ccaca
1 changed files with 1 additions and 2 deletions
|
|
@ -684,8 +684,7 @@ fn devices_view() -> Section<crate::pages::Message> {
|
|||
}))
|
||||
.any(|known| known == network.ssid.as_ref());
|
||||
|
||||
// TODO: detect if access point is secured or not.
|
||||
let is_encrypted = true;
|
||||
let is_encrypted = network.network_type != NetworkType::Open;
|
||||
|
||||
let (connect_txt, connect_msg) = if is_connected {
|
||||
(§ion.descriptions[connected_txt], None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue