Skip to content

Commit f38b848

Browse files
Fix toggleSidebar ID and add to default toolbar
Fixes the ID of the sidebar from `toggleSidebar` to the correct `sidebarToggle` Adds the sidebarToggle button to the default toolbar. This should not affect existing users, unless they drag the default toolbar but *should* affect new users. Replaces: Ranchero-Software#4242 Closes: Ranchero-Software#4103 Co-authored-by: Andy Williams <[email protected]>
1 parent ee3999c commit f38b848

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Mac/MainWindow/MainWindowController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ extension MainWindowController: NSToolbarDelegate {
796796

797797
case .sidebarToggle:
798798
let title = NSLocalizedString("Toggle Sidebar", comment: "Toggle Sidebar")
799-
return buildToolbarButton(.toggleSidebar, title, AppAsset.toolbarSidebarToggleImage, "toggleTheSidebar:")
799+
return buildToolbarButton(.sidebarToggle, title, AppAsset.toolbarSidebarToggleImage, "toggleTheSidebar:")
800800

801801
case .refresh:
802802
let title = NSLocalizedString("Refresh", comment: "Refresh")
@@ -902,6 +902,7 @@ extension MainWindowController: NSToolbarDelegate {
902902

903903
func toolbarDefaultItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier] {
904904
[
905+
.sidebarToggle,
905906
.flexibleSpace,
906907
.refresh,
907908
.newSidebarItemMenu,

0 commit comments

Comments
 (0)