Skip to content

Commit

Permalink
Wait for download tool progress to be completely dismissed before nav…
Browse files Browse the repository at this point in the history
…igating to tool
  • Loading branch information
levieggertcru committed Oct 23, 2024
1 parent b1927a5 commit 796a4e1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ class DownloadToolTranslationsFlow: Flow {
}, receiveValue: { [weak self] (toolTranslations: ToolTranslationsDomainModel) in

if let downloadToolProgressView = self?.downloadToolProgressView {

downloadToolProgressView.completeDownloadProgress {
self?.dismissDownloadTool(completion: nil)
self?.didDownloadToolTranslations(.success(toolTranslations))
downloadToolProgressView.completeDownloadProgress { [weak self] in
self?.dismissDownloadTool(completion: { [weak self] in
self?.didDownloadToolTranslations(.success(toolTranslations))
})
}
}
else {
Expand Down

0 comments on commit 796a4e1

Please sign in to comment.