mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-11 14:14:09 +01:00
Timeline only clear cache if previous value was .home
This commit is contained in:
parent
f22671cc66
commit
b75dd65ac4
@ -13,7 +13,9 @@ class TimelineViewModel: ObservableObject {
|
|||||||
timelineTask?.cancel()
|
timelineTask?.cancel()
|
||||||
timelineTask = Task {
|
timelineTask = Task {
|
||||||
if timeline == .latest {
|
if timeline == .latest {
|
||||||
await clearHomeCache()
|
if oldValue == .home {
|
||||||
|
await clearHomeCache()
|
||||||
|
}
|
||||||
timeline = oldValue
|
timeline = oldValue
|
||||||
}
|
}
|
||||||
if oldValue != timeline {
|
if oldValue != timeline {
|
||||||
|
Loading…
Reference in New Issue
Block a user