Skip to content

Commit

Permalink
Fix TabSwitcherViewController Fire Button
Browse files Browse the repository at this point in the history
  • Loading branch information
SabrinaTardio authored and alessandroboron committed Jul 19, 2024
1 parent 063481a commit 6438ff6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions DuckDuckGo/TabSwitcherViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
Expand Down

0 comments on commit 6438ff6

Please sign in to comment.