Skip to content

Commit

Permalink
Close menu when browser is added to dock on custom menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaemepereira committed Jan 29, 2025
1 parent f64d4c1 commit 7f3796c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDuckGo/NavigationBar/View/MoreOptionsMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ final class MoreOptionsMenu: NSMenu, NSMenuDelegate {
image: .addToDockMenuItem) {
if let target = addToDockMenuItem.target {
_ = target.perform(addToDockMenuItem.action, with: addToDockMenuItem)
// TODO: Need to close the menu when this happens
}
self.cancelTracking()
}
addItem(addToDockMenuItem)
}
Expand Down

0 comments on commit 7f3796c

Please sign in to comment.