mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Home settings
This commit is contained in:
@@ -29,6 +29,7 @@ struct SearchView: View {
|
||||
|
||||
@Default(.recentlyOpened) private var recentlyOpened
|
||||
@Default(.saveRecents) private var saveRecents
|
||||
@Default(.showHome) private var showHome
|
||||
|
||||
private var videos = [Video]()
|
||||
|
||||
@@ -209,13 +210,11 @@ struct SearchView: View {
|
||||
visibleSections.append(.playlists)
|
||||
}
|
||||
|
||||
[VisibleSection.home, .trending].forEach { section in
|
||||
if preferred.contains(section) {
|
||||
visibleSections.append(section)
|
||||
}
|
||||
if preferred.contains(.trending) {
|
||||
visibleSections.append(.trending)
|
||||
}
|
||||
|
||||
return !visibleSections.isEmpty
|
||||
return !visibleSections.isEmpty || showHome
|
||||
}
|
||||
|
||||
private var results: some View {
|
||||
|
Reference in New Issue
Block a user