From bacedde684d01af44d04509ffe981db53d2efdff Mon Sep 17 00:00:00 2001 From: Chris Brind Date: Fri, 5 Jul 2024 19:47:23 +0100 Subject: [PATCH] fix bug not clearing ui properly on autoclear --- DuckDuckGo/MainViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DuckDuckGo/MainViewController.swift b/DuckDuckGo/MainViewController.swift index 9b68900b42..3210d8db58 100644 --- a/DuckDuckGo/MainViewController.swift +++ b/DuckDuckGo/MainViewController.swift @@ -2445,11 +2445,11 @@ extension MainViewController: AutoClearWorker { @MainActor func autoClearDidFinishClearing(_: AutoClear, isLaunching: Bool) { + autoClearInProgress = false if autoClearShouldRefreshUIAfterClear && isLaunching == false { refreshUIAfterClear() } - autoClearInProgress = false autoClearShouldRefreshUIAfterClear = true }