Skip to content

Commit

Permalink
Fix invalid reference (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
francisfeng authored Oct 20, 2023
1 parent a2f163d commit c677bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Settings/ToolbarItemStyleViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ final class ToolbarItemStyleViewController: NSObject, SettingsStyleController {
let index = toolbar.items.firstIndex(where: { $0.itemIdentifier == previousSelectedItemIdentifier })
{
toolbar.removeItem(at: index)
toolbar.insertItem(withItemIdentifier: previousSelected, at: index)
toolbar.insertItem(withItemIdentifier: previousSelectedItemIdentifier, at: index)
}

previousSelectedItemIdentifier = toolbar.selectedItemIdentifier
Expand Down

0 comments on commit c677bea

Please sign in to comment.