Skip to content

Commit

Permalink
Display favicons fetcher onboarding only when there's no other view c…
Browse files Browse the repository at this point in the history
…ontroller being presented
  • Loading branch information
ayoy committed Nov 14, 2023
1 parent 0cbe870 commit a26320e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DuckDuckGo/FaviconsFetcherOnboarding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ final class FaviconsFetcherOnboarding {

@MainActor
func presentOnboardingIfNeeded(from viewController: UIViewController) {
guard shouldPresentOnboarding else {
let isCurrentlyPresenting = viewController.presentingViewController != nil
guard shouldPresentOnboarding, !isCurrentlyPresenting else {
return
}
didPresentFaviconsFetchingOnboarding = true
Expand Down

0 comments on commit a26320e

Please sign in to comment.