Preload cached stations at launch (all tabs populate instantly); alert handler falls back to cache on background wake, restores enabled/fuel/radius in monitor init, re-registers geofences on setEnabled

This commit is contained in:
FuelBoard Contributor
2026-08-11 16:50:45 +01:00
parent c5050df445
commit e8a82ce515
2 changed files with 19 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import WidgetKit
struct ContentView: View {
@Environment(\.scenePhase) private var scenePhase
@State private var stations: [FuelStation] = []
@State private var stations: [FuelStation] = FuelStore.loadStations()
@State private var selectedFuel: FuelType = FuelStore.loadSelectedFuel()
@State private var sortMode: SortMode = FuelStore.loadSortMode()
@State private var stationLimit: Int = FuelStore.loadStationLimit()