Skip to content

Commit 098192c

Browse files
committed
Minor reorganization
1 parent 9548866 commit 098192c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

devdocs-macos/DocumentationWindowController.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,6 @@ extension DocumentationWindowController: NSToolbarDelegate {
168168
func toolbar(_ toolbar: NSToolbar, itemForItemIdentifier itemIdentifier: NSToolbarItem.Identifier, willBeInsertedIntoToolbar flag: Bool) -> NSToolbarItem? {
169169
switch itemIdentifier {
170170
case .historyNavigation:
171-
let item = NSToolbarItemGroup(itemIdentifier: itemIdentifier)
172-
item.label = NSLocalizedString("Back / Forward", comment: "History navigation")
173-
item.isNavigational = true
174-
175171
let backItem = NavigationToolbarItem(itemIdentifier: .navigateBack)
176172
do {
177173
backItem.label = NSLocalizedString("Back", comment: "Navigate back")
@@ -192,6 +188,9 @@ extension DocumentationWindowController: NSToolbarDelegate {
192188
forwardItem.autovalidates = true
193189
}
194190

191+
let item = NSToolbarItemGroup(itemIdentifier: itemIdentifier)
192+
item.label = NSLocalizedString("Back / Forward", comment: "History navigation")
193+
item.isNavigational = true
195194
item.subitems = [backItem, forwardItem]
196195
return item
197196
case .contentSearch:

0 commit comments

Comments
 (0)