Skip to content

Commit

Permalink
Add delay to allow navigation stack to clear
Browse files Browse the repository at this point in the history
  • Loading branch information
amddg44 committed Mar 20, 2024
1 parent 940c52a commit 35a51bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DuckDuckGo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

if shortcutItem.type == ShortcutKey.passwords {
mainViewController?.clearNavigationStack()
mainViewController?.launchAutofillLogins(openSearch: true)
// Give the `clearNavigationStack` call time to complete.
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.5) { [weak self] in
self?.mainViewController?.launchAutofillLogins(openSearch: true)
}
return
}

Expand Down

0 comments on commit 35a51bb

Please sign in to comment.