Fix watch build, status sync, and icon assets
This commit is contained in:
@@ -392,12 +392,6 @@ struct ContentView: View {
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
Spacer()
|
||||
Text(fuel.shortName)
|
||||
.font(.caption)
|
||||
.fontWeight(.bold)
|
||||
.padding(.horizontal, 8)
|
||||
.padding(.vertical, 4)
|
||||
.background(fuel.color.opacity(0.18), in: Capsule())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -496,7 +490,9 @@ struct ContentView: View {
|
||||
}
|
||||
|
||||
private func statusFromCache() -> WatchRefreshState {
|
||||
guard !stations.isEmpty else { return .noData }
|
||||
let hasUsablePrices = !stations.isEmpty
|
||||
|| favourites.contains { favourite in favourite.station.prices[fuel] != nil }
|
||||
guard hasUsablePrices else { return .noData }
|
||||
guard let lastRefresh = WatchFuelCache.loadLastRefresh() else { return .stale(lastUpdated: "earlier") }
|
||||
let formatted = relativeRefreshText(for: lastRefresh)
|
||||
return WatchFuelCache.isCacheFresh(lastRefresh: lastRefresh)
|
||||
|
||||
Reference in New Issue
Block a user