diff --git a/Multiplatform/Shared/Sidebar/SidebarSelectionModel.swift b/Multiplatform/Shared/Sidebar/SidebarSelectionModel.swift index 76eff0e79..9bb3d531d 100644 --- a/Multiplatform/Shared/Sidebar/SidebarSelectionModel.swift +++ b/Multiplatform/Shared/Sidebar/SidebarSelectionModel.swift @@ -25,12 +25,14 @@ class SidebarSelectionModel: ObservableObject { @Published var selectedSidebarItem: FeedIdentifier? = .none { willSet { + #if os(macOS) if newValue != nil { items.insert(newValue!) } else { selectedSidebarItems = items items.removeAll() } + #endif } } }