Skip to content

Commit

Permalink
Fix toggleSidebar ID and add to default
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rushsteve1 and lolindrath committed Oct 20, 2024
1 parent ee3999c commit 027d383
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mac/MainWindow/MainWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ extension MainWindowController: NSToolbarDelegate {

case .sidebarToggle:
let title = NSLocalizedString("Toggle Sidebar", comment: "Toggle Sidebar")
return buildToolbarButton(.toggleSidebar, title, AppAsset.toolbarSidebarToggleImage, "toggleTheSidebar:")
return buildToolbarButton(.sidebarToggle, title, AppAsset.toolbarSidebarToggleImage, "toggleTheSidebar:")

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

func toolbarDefaultItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier] {
[
.sidebarToggle,
.flexibleSpace,
.refresh,
.newSidebarItemMenu,
Expand Down

0 comments on commit 027d383

Please sign in to comment.