mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
disable more things when not connected
This commit is contained in:
parent
acb8e6b280
commit
14370c3423
4 changed files with 4 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ struct DeviceConfig: View {
|
|||
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
|
||||
}
|
||||
}
|
||||
.disabled(bleManager.connectedPeripheral == nil)
|
||||
|
||||
HStack {
|
||||
|
||||
|
|
|
|||
|
|
@ -180,6 +180,7 @@ struct DisplayConfig: View {
|
|||
.listRowSeparator(.visible)
|
||||
}
|
||||
}
|
||||
.disabled(bleManager.connectedPeripheral == nil)
|
||||
|
||||
Button {
|
||||
|
||||
|
|
|
|||
|
|
@ -236,6 +236,7 @@ struct LoRaConfig: View {
|
|||
.listRowSeparator(.visible)
|
||||
}
|
||||
}
|
||||
.disabled(bleManager.connectedPeripheral == nil)
|
||||
|
||||
Button {
|
||||
|
||||
|
|
|
|||
|
|
@ -258,6 +258,7 @@ struct PositionConfig: View {
|
|||
.listRowSeparator(.visible)
|
||||
}
|
||||
}
|
||||
.disabled(bleManager.connectedPeripheral == nil)
|
||||
|
||||
Button {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue