mirror of
https://github.com/yattee/yattee.git
synced 2025-10-11 01:48:12 +00:00
HomeView: Changes to Favourites and History Widget
The History Widget in the Home View was hard-coded to 10 items. Now it uses the limit set in the settings. The items weren't immediate updated when the limit was changed. List Views had a hard-coded limit of 10 items. Now they use the limit supplied in the parameter.
This commit is contained in:
@@ -97,11 +97,11 @@ struct HomeView: View {
|
||||
VStack(alignment: .leading) {
|
||||
#if os(tvOS)
|
||||
ForEach(Defaults[.favorites]) { item in
|
||||
FavoriteItemView(item: item)
|
||||
FavoriteItemView(item: item, favoritesChanged: $favoritesChanged)
|
||||
}
|
||||
#else
|
||||
ForEach(favorites) { item in
|
||||
FavoriteItemView(item: item)
|
||||
FavoriteItemView(item: item, favoritesChanged: $favoritesChanged)
|
||||
#if os(macOS)
|
||||
.workaroundForVerticalScrollingBug()
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user