Closed waldo121 closed 1 month ago
Attention: Patch coverage is 0%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 64.49%. Comparing base (
280327b
) to head (9f9e5d3
). Report is 2 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
packages/app/app/actions/downloads.ts | 0.00% | 1 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I don't get why'd this change anything, but if you say this fixes the problem, I'm grateful.
For the record, DOWNLOAD_PROGRESS
can be emitted after the download stops due to being paused. So we can imagine the following sequence.
DOWNLOAD_PROGRESS
gets sent now -> 2nd status change -> completion is updated -> item goes from 'paused' => 'started' (assuming download is not finished) -> ui is lying After the fix,
DOWNLOAD_PROGRESS
handler is not responsible to decide a download is correctly 'started'. So the progress event still happens but has no unexpected impact.
Fixes #1712
I simply chose to move a responsability out of the Download Progress Action back to the ipc controller.