mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Make things a little more readable
This commit is contained in:
parent
2cd3c33b89
commit
c095f2d83e
3 changed files with 9 additions and 9 deletions
|
|
@ -50,7 +50,6 @@ struct MeshtasticAppleApp: App {
|
|||
} else {
|
||||
print("User wants to import a MBTILES offline map file: \(channelUrl?.absoluteString ?? "No Tiles link")")
|
||||
}
|
||||
|
||||
|
||||
//we are expecting a .mbtiles map file that contains raster data
|
||||
//save it to the documents directory, and name it offline_map.mbtiles
|
||||
|
|
|
|||
|
|
@ -75,11 +75,11 @@ struct DeviceConfig: View {
|
|||
titleVisibility: .visible
|
||||
) {
|
||||
Button("Erase all device and app data?", role: .destructive) {
|
||||
if !bleManager.sendNodeDBReset(destNum: bleManager.connectedPeripheral.num) {
|
||||
print("NodeDB Reset Failed")
|
||||
} else {
|
||||
bleManager.disconnectPeripheral()
|
||||
if bleManager.sendNodeDBReset(destNum: bleManager.connectedPeripheral.num) {
|
||||
bleManager.disconnectPeripheral()
|
||||
clearCoreDataDatabase(context: context)
|
||||
} else {
|
||||
print("NodeDB Reset Failed")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -98,11 +98,12 @@ struct DeviceConfig: View {
|
|||
) {
|
||||
Button("Factory reset your device and app? ", role: .destructive) {
|
||||
|
||||
if !bleManager.sendFactoryReset(destNum: bleManager.connectedPeripheral.num) {
|
||||
print("Factory Reset Failed")
|
||||
} else {
|
||||
if bleManager.sendFactoryReset(destNum: bleManager.connectedPeripheral.num) {
|
||||
bleManager.disconnectPeripheral()
|
||||
clearCoreDataDatabase(context: context)
|
||||
} else {
|
||||
print("Factory Reset Failed")
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ struct ShareChannels: View {
|
|||
preview: SharePreview("Meshtastic Node \(node?.user?.shortName ?? "????") has shared channels with you",
|
||||
image: Image(uiImage: qrImage))
|
||||
)
|
||||
.presentationDetents([.large, .large])
|
||||
.presentationDetents([.medium, .large])
|
||||
|
||||
Divider()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue