Restrict wifi to devices with wifi

This commit is contained in:
Garth Vander Houwen 2022-08-02 09:49:11 -07:00
parent 045fb598d5
commit 2756db10ec
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,7 @@ struct WiFiConfig: View {
}
}
.disabled(bleManager.connectedPeripheral == nil)
.disabled(!(node != nil && node!.myInfo?.hasWifi ?? false))
Button {

View file

@ -107,7 +107,7 @@ struct Settings: View {
Image(systemName: "wifi")
.symbolRenderingMode(.hierarchical)
Text("WiFi")
Text("WiFi (ESP32 Only)")
}
.disabled(bleManager.connectedPeripheral == nil)