From 1a6e2e95e6371e27182ebb996376459644341ec7 Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Sun, 3 Dec 2023 11:44:15 +0100 Subject: [PATCH] Hide library menus on macOS --- Views/Commands.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Views/Commands.swift b/Views/Commands.swift index 61672c3d..967aefe2 100644 --- a/Views/Commands.swift +++ b/Views/Commands.swift @@ -86,8 +86,10 @@ struct SidebarNavigationCommands: View { var body: some View { buildButtons([.reading, .bookmarks], modifiers: [.command]) - Divider() - buildButtons([.opened, .categories, .downloads, .new], modifiers: [.command, .control]) + if FeatureFlags.hasLibrary { + Divider() + buildButtons([.opened, .categories, .downloads, .new], modifiers: [.command, .control]) + } } private func buildButtons(_ navigationItems: [NavigationItem], modifiers: EventModifiers = []) -> some View {