Use first appear on mesh map

This commit is contained in:
Garth Vander Houwen 2024-09-19 20:01:05 -07:00
parent a40d194f32
commit 496016c6fa
3 changed files with 16 additions and 5 deletions

View file

@ -21,6 +21,21 @@
},
": %d" : {
},
".dot" : {
},
".gauge" : {
},
".gradient" : {
},
".pill" : {
},
".text" : {
},
"(Re)define PIN_GPS_EN for your board." : {
@ -19154,9 +19169,6 @@
},
"Send" : {
},
"Send ${messageContent} to ${channelNumber}" : {
},
"Send a Group Message" : {

View file

@ -59,7 +59,6 @@ enum MeshMapDistances: Double, CaseIterable, Identifiable {
case fifteenHundredMiles = 2414016
case twentyFiveHundredMiles = 4023360
case fiveThouandMiles = 8046720
case tenThousandMiles = 16093440
var id: Double { self.rawValue }
var description: String {
let distanceFormatter = MKDistanceFormatter()

View file

@ -205,7 +205,7 @@ struct MeshMap: View {
.navigationBarItems(leading: MeshtasticLogo(), trailing: ZStack {
ConnectedDevice(bluetoothOn: bleManager.isSwitchedOn, deviceConnected: bleManager.connectedPeripheral != nil, name: (bleManager.connectedPeripheral != nil) ? bleManager.connectedPeripheral.shortName : "?")
})
.onAppear {
.onFirstAppear {
UIApplication.shared.isIdleTimerDisabled = true
// let wayPointEntity = getWaypoint(id: Int64(deepLinkManager.waypointId) ?? -1, context: context)