diff --git a/Configuration/Version.xcconfig b/Configuration/Version.xcconfig index 18bc413d0b..66ae34dcb6 100644 --- a/Configuration/Version.xcconfig +++ b/Configuration/Version.xcconfig @@ -1,2 +1,2 @@ -MARKETING_VERSION = 0.30.4 +MARKETING_VERSION = 0.30.5 diff --git a/DuckDuckGo/Tab Bar/View/TabBarViewItem.swift b/DuckDuckGo/Tab Bar/View/TabBarViewItem.swift index e5d8f8aa1f..c0f8a20203 100644 --- a/DuckDuckGo/Tab Bar/View/TabBarViewItem.swift +++ b/DuckDuckGo/Tab Bar/View/TabBarViewItem.swift @@ -175,12 +175,12 @@ final class TabBarViewItem: NSCollectionViewItem { private var lastKnownIndexPath: IndexPath? - @IBAction func closeButtonAction(_ sender: NSButton) { + @IBAction func closeButtonAction(_ sender: Any) { // due to async nature of NSCollectionView views removal // leaving window._lastLeftHit set to the button will prevent // continuous clicks on the Close button // this should be removed when the Tab Bar is redone without NSCollectionView - sender.window?.evilHackToClearLastLeftHitInWindow() + (sender as? NSButton)?.window?.evilHackToClearLastLeftHitInWindow() guard let indexPath = self.collectionView?.indexPath(for: self) else { // doubleclick event arrived at point when we're already removed