Skip to content

Commit

Permalink
fix bug not clearing ui properly on autoclear
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Jul 5, 2024
1 parent 213d282 commit bacedde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDuckGo/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2445,11 +2445,11 @@ extension MainViewController: AutoClearWorker {

@MainActor
func autoClearDidFinishClearing(_: AutoClear, isLaunching: Bool) {
autoClearInProgress = false
if autoClearShouldRefreshUIAfterClear && isLaunching == false {
refreshUIAfterClear()
}

autoClearInProgress = false
autoClearShouldRefreshUIAfterClear = true
}

Expand Down

0 comments on commit bacedde

Please sign in to comment.