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,9 +86,11 @@ struct SidebarNavigationCommands: View {
var body: some View { var body: some View {
buildButtons([.reading, .bookmarks], modifiers: [.command]) buildButtons([.reading, .bookmarks], modifiers: [.command])
if FeatureFlags.hasLibrary {
Divider() Divider()
buildButtons([.opened, .categories, .downloads, .new], modifiers: [.command, .control]) 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 {
ForEach(Array(navigationItems.enumerated()), id: \.element) { index, item in ForEach(Array(navigationItems.enumerated()), id: \.element) { index, item in