Hide library menus on macOS

This commit is contained in:
Balazs Perlaki-Horvath 2023-12-03 11:44:15 +01:00
parent 1c7b6edcce
commit 1a6e2e95e6

View File

@ -86,8 +86,10 @@ struct SidebarNavigationCommands: View {
var body: some View { var body: some View {
buildButtons([.reading, .bookmarks], modifiers: [.command]) buildButtons([.reading, .bookmarks], modifiers: [.command])
Divider() if FeatureFlags.hasLibrary {
buildButtons([.opened, .categories, .downloads, .new], modifiers: [.command, .control]) Divider()
buildButtons([.opened, .categories, .downloads, .new], modifiers: [.command, .control])
}
} }
private func buildButtons(_ navigationItems: [NavigationItem], modifiers: EventModifiers = []) -> some View { private func buildButtons(_ navigationItems: [NavigationItem], modifiers: EventModifiers = []) -> some View {