mirror of
https://github.com/yattee/yattee.git
synced 2025-08-04 01:34:10 +00:00
Subscribed channels cache
This commit is contained in:
@@ -42,7 +42,8 @@ struct ContentView: View {
|
||||
subscriptions.load(force: true)
|
||||
playlists.load(force: true)
|
||||
}
|
||||
.onChange(of: accounts.signedIn) { _ in
|
||||
.onChange(of: accounts.signedIn) { newValue in
|
||||
guard newValue else { return }
|
||||
subscriptions.load(force: true)
|
||||
playlists.load(force: true)
|
||||
}
|
||||
|
@@ -16,6 +16,8 @@ struct SubscriptionsView: View {
|
||||
HStack {
|
||||
Spacer()
|
||||
|
||||
CacheStatusHeader(refreshTime: model.formattedFeedTime, isLoading: model.isLoading)
|
||||
|
||||
#if os(tvOS)
|
||||
Button {
|
||||
model.loadResources(force: true)
|
||||
@@ -27,8 +29,7 @@ struct SubscriptionsView: View {
|
||||
}
|
||||
.padding(.horizontal, 10)
|
||||
#endif
|
||||
|
||||
CacheStatusHeader(refreshTime: model.formattedFeedTime, isLoading: model.isLoading)
|
||||
}
|
||||
}
|
||||
.environment(\.loadMoreContentHandler) { model.loadNextPage() }
|
||||
.onAppear {
|
||||
|
@@ -162,7 +162,6 @@ struct YatteeApp: App {
|
||||
|
||||
NavigationModel.shared.tabSelection = section ?? .search
|
||||
|
||||
subscriptions.load()
|
||||
playlists.load()
|
||||
|
||||
#if !os(macOS)
|
||||
|
Reference in New Issue
Block a user