From 64472a3282faa0d70d5fa2479dab237780fdf671 Mon Sep 17 00:00:00 2001 From: Alessandro Boron Date: Wed, 11 Dec 2024 12:24:56 +0100 Subject: [PATCH] Update privacy icon for special error pages --- DuckDuckGo/OmniBar.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/DuckDuckGo/OmniBar.swift b/DuckDuckGo/OmniBar.swift index 01415d572d..40f2edc04c 100644 --- a/DuckDuckGo/OmniBar.swift +++ b/DuckDuckGo/OmniBar.swift @@ -29,6 +29,7 @@ extension OmniBar: NibLoading {} public enum OmniBarIcon: String { case duckPlayer = "DuckPlayerURLIcon" + case specialError = "Globe-24" } class OmniBar: UIView { @@ -300,10 +301,15 @@ class OmniBar: UIView { showCustomIcon(icon: .duckPlayer) return } - - privacyInfoContainer.privacyIcon.isHidden = privacyInfo.isSpecialErrorPageVisible + + if privacyInfo.isSpecialErrorPageVisible { + showCustomIcon(icon: .specialError) + return + } + let icon = PrivacyIconLogic.privacyIcon(for: privacyInfo) privacyInfoContainer.privacyIcon.updateIcon(icon) + privacyInfoContainer.privacyIcon.isHidden = false customIconView.isHidden = true }