mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
Fix Favorites performance
This commit is contained in:
parent
3661d06080
commit
a763e1d097
@ -29,6 +29,7 @@ struct HistoryView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.animation(nil, value: visibleWatches)
|
||||
.onAppear {
|
||||
visibleWatches
|
||||
.forEach(player.loadHistoryVideoDetails)
|
||||
|
@ -80,6 +80,7 @@ struct HomeView: View {
|
||||
}
|
||||
|
||||
if !accounts.current.isNil, showFavoritesInHome {
|
||||
LazyVStack(alignment: .leading) {
|
||||
#if os(tvOS)
|
||||
ForEach(Defaults[.favorites]) { item in
|
||||
FavoriteItemView(item: item)
|
||||
@ -93,6 +94,7 @@ struct HomeView: View {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
#if os(iOS)
|
||||
if homeRecentDocumentsItems > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user