From 496016c6fa1da51955bb9664d6b73d3746d963e8 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Thu, 19 Sep 2024 20:01:05 -0700 Subject: [PATCH] Use first appear on mesh map --- Localizable.xcstrings | 18 +++++++++++++++--- Meshtastic/Enums/AppSettingsEnums.swift | 1 - Meshtastic/Views/Nodes/MeshMap.swift | 2 +- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Localizable.xcstrings b/Localizable.xcstrings index a61ea1cf4..42554c57f 100644 --- a/Localizable.xcstrings +++ b/Localizable.xcstrings @@ -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" : { diff --git a/Meshtastic/Enums/AppSettingsEnums.swift b/Meshtastic/Enums/AppSettingsEnums.swift index bfd8ce9e1..690fe399b 100644 --- a/Meshtastic/Enums/AppSettingsEnums.swift +++ b/Meshtastic/Enums/AppSettingsEnums.swift @@ -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() diff --git a/Meshtastic/Views/Nodes/MeshMap.swift b/Meshtastic/Views/Nodes/MeshMap.swift index c4f987abf..5dd6e19a8 100644 --- a/Meshtastic/Views/Nodes/MeshMap.swift +++ b/Meshtastic/Views/Nodes/MeshMap.swift @@ -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)