From a7fb940003433284802ec43ead0768f331798c97 Mon Sep 17 00:00:00 2001 From: Anh Do Date: Thu, 11 Apr 2024 16:18:08 -0400 Subject: [PATCH] Fix popover not displayed reliably --- DuckDuckGo/NavigationBar/View/NavigationBarViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/DuckDuckGo/NavigationBar/View/NavigationBarViewController.swift b/DuckDuckGo/NavigationBar/View/NavigationBarViewController.swift index 0274af6b08..8c99ed1284 100644 --- a/DuckDuckGo/NavigationBar/View/NavigationBarViewController.swift +++ b/DuckDuckGo/NavigationBar/View/NavigationBarViewController.swift @@ -973,6 +973,7 @@ extension NavigationBarViewController: NSMenuDelegate { .store(in: &cancellables) networkProtectionButtonModel.$showButton + .removeDuplicates() .receive(on: RunLoop.main) .sink { [weak self] show in let isPopUpWindow = self?.view.window?.isPopUpWindow ?? false