From c887cd7921e230451d98788a871af5ffe1e3d06b Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 17 Feb 2018 20:46:20 -0800 Subject: [PATCH] Fix bug in existingItemWithIdentifier. --- Frameworks/RSCore/RSCore/AppKit/NSToolbar+RSCore.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/RSCore/RSCore/AppKit/NSToolbar+RSCore.swift b/Frameworks/RSCore/RSCore/AppKit/NSToolbar+RSCore.swift index 6f71db098..2024c6227 100644 --- a/Frameworks/RSCore/RSCore/AppKit/NSToolbar+RSCore.swift +++ b/Frameworks/RSCore/RSCore/AppKit/NSToolbar+RSCore.swift @@ -10,7 +10,7 @@ import AppKit public extension NSToolbar { - public func existingItem(withIdentifier: NSToolbarItem.Identifier) -> NSToolbarItem? { + public func existingItem(withIdentifier identifier: NSToolbarItem.Identifier) -> NSToolbarItem? { return items.firstElementPassingTest{ $0.itemIdentifier == identifier } }