Hide Home shortcuts on tvOS

This commit is contained in:
Arkadiusz Fal
2026-04-14 02:35:38 +02:00
parent babaca74f2
commit 39a04ba7a4
2 changed files with 4 additions and 0 deletions

View File

@@ -31,8 +31,10 @@ struct HomeSettingsView: View {
var body: some View { var body: some View {
List { List {
#if !os(tvOS)
shortcutsSection shortcutsSection
availableShortcutsSection availableShortcutsSection
#endif
sectionsSection sectionsSection
availableSectionsSection availableSectionsSection
itemsLimitSection itemsLimitSection

View File

@@ -188,9 +188,11 @@ struct HomeView: View {
@ViewBuilder @ViewBuilder
private var homeContent: some View { private var homeContent: some View {
#if !os(tvOS)
if hasVisibleShortcuts { if hasVisibleShortcuts {
shortcutsSection shortcutsSection
} }
#endif
ForEach(settingsManager?.visibleSections() ?? HomeSectionItem.defaultOrder.filter { HomeSectionItem.defaultVisibility[$0] == true }) { section in ForEach(settingsManager?.visibleSections() ?? HomeSectionItem.defaultOrder.filter { HomeSectionItem.defaultVisibility[$0] == true }) { section in
sectionView(for: section) sectionView(for: section)