Skip to content

Commit

Permalink
Merge branch 'release/0.30.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstrba committed Nov 4, 2022
2 parents a63c133 + 16908f0 commit 939b704
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Configuration/Version.xcconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MARKETING_VERSION = 0.30.4
MARKETING_VERSION = 0.30.5

4 changes: 2 additions & 2 deletions DuckDuckGo/Tab Bar/View/TabBarViewItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 939b704

Please sign in to comment.