diff --git a/Shared/Home/FavoriteItemView.swift b/Shared/Home/FavoriteItemView.swift index 33f3ac98..3f66ccd9 100644 --- a/Shared/Home/FavoriteItemView.swift +++ b/Shared/Home/FavoriteItemView.swift @@ -23,6 +23,7 @@ struct FavoriteItemView: View { @Default(.hideShorts) private var hideShorts @Default(.hideWatched) private var hideWatched @Default(.widgetsSettings) private var widgetsSettings + @Default(.visibleSections) private var visibleSections init(item: FavoriteItem) { self.item = item @@ -285,7 +286,18 @@ struct FavoriteItemView: View { } var navigatableItem: Bool { - item.section != .history + switch item.section { + case .history: + return false + case .trending: + return visibleSections.contains(.trending) + case .subscriptions: + return visibleSections.contains(.subscriptions) && accounts.signedIn + case .popular: + return visibleSections.contains(.popular) && accounts.app.supportsPopular + default: + return true + } } var inChannelView: Bool {