mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Don't let the map view idle
This commit is contained in:
parent
8bf98f1eab
commit
a945577b89
1 changed files with 2 additions and 0 deletions
|
|
@ -112,6 +112,7 @@ struct NodeMap: View {
|
|||
"????")
|
||||
})
|
||||
.onAppear(perform: {
|
||||
UIApplication.shared.isIdleTimerDisabled = true
|
||||
self.bleManager.context = context
|
||||
self.bleManager.userSettings = userSettings
|
||||
mapCenteringMode = CenteringMode(rawValue: meshMapCenteringMode) ?? CenteringMode.allAnnotations
|
||||
|
|
@ -138,5 +139,6 @@ struct NodeMap: View {
|
|||
mapType = .hybridFlyover
|
||||
}
|
||||
})
|
||||
.onDisappear { UIApplication.shared.isIdleTimerDisabled = false }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue