From 6438ff6a1b11283f07f9a251f2273f36d9b5acff Mon Sep 17 00:00:00 2001 From: Sabrina Tardio Date: Thu, 18 Jul 2024 14:29:00 +0200 Subject: [PATCH] Fix TabSwitcherViewController Fire Button --- DuckDuckGo/TabSwitcherViewController.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/DuckDuckGo/TabSwitcherViewController.swift b/DuckDuckGo/TabSwitcherViewController.swift index 545698b9d0..f8c3c54426 100644 --- a/DuckDuckGo/TabSwitcherViewController.swift +++ b/DuckDuckGo/TabSwitcherViewController.swift @@ -317,11 +317,17 @@ class TabSwitcherViewController: UIViewController { @IBAction func onFirePressed(sender: AnyObject) { Pixel.fire(pixel: .forgetAllPressedTabSwitching) - - if DaxDialogs.shared.shouldShowFireButtonPulse { + let isNewOnboarding = DefaultVariantManager().isSupported(feature: .newOnboardingIntro) + + if !isNewOnboarding + && DaxDialogs.shared.shouldShowFireButtonPulse { + ViewHighlighter.hideAll() let spec = DaxDialogs.shared.fireButtonEducationMessage() performSegue(withIdentifier: "ActionSheetDaxDialog", sender: spec) } else { + if isNewOnboarding { + ViewHighlighter.hideAll() + } let alert = ForgetDataAlert.buildAlert(forgetTabsAndDataHandler: { [weak self] in self?.forgetAll() })