Keep Settings in the tvOS sidebar (#986)

tvOS has no other route to Settings, so unchecking it in Sidebar settings
locked users out. Treat Settings as a required sidebar item on tvOS; an
already-stored hidden value is ignored because required items bypass the
visibility map.
This commit is contained in:
Arkadiusz Fal
2026-10-19 21:43:46 +02:00
parent 13eb89abc0
commit ef372b65d9
2 changed files with 8 additions and 1 deletions

View File

@@ -260,7 +260,7 @@ struct SidebarSettingsView: View {
private func mainItemBinding(for item: SidebarMainItem) -> Binding<Bool> {
Binding(
get: { mainItemVisibility[item] ?? true },
get: { item.isRequired || (mainItemVisibility[item] ?? true) },
set: { newValue in
mainItemVisibility[item] = newValue
saveMainNavigationSettings()