mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-26 13:29:31 -04:00
Hide library menus on macOS
This commit is contained in:
parent
1c7b6edcce
commit
1a6e2e95e6
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user