mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Fix share location crash if a device is not connected
This commit is contained in:
parent
ece4045085
commit
4cb96b827a
1 changed files with 4 additions and 1 deletions
|
|
@ -103,7 +103,10 @@ struct AppSettings: View {
|
|||
self.bleManager.context = context
|
||||
}
|
||||
.onChange(of: userSettings.provideLocation) { newProvideLocation in
|
||||
self.bleManager.sendWantConfig()
|
||||
|
||||
if bleManager.connectedPeripheral != nil {
|
||||
self.bleManager.sendWantConfig()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue