-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download completed callback improvement #1617
Conversation
src/providers/ror2/downloading/ThunderstoreDownloaderProvider.ts
Outdated
Show resolved
Hide resolved
0ddd566
to
8080030
Compare
8080030
to
53c1621
Compare
53c1621
to
e433150
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This passes the "review" state, but on manual testing, it seems that errors don't properly set the state of the download tracker. I.e:
- Start download
- Before it finishes, use dev tools to go offline
- Error modal is shown
- In the DownloadMonitor view, the download is still shown as in progress
I think the catch-block in downloadHandler
should call Vuex's download/updateDownload
with failure state, but do test this and other error cases thoroughly yourself too.
e433150
to
911baa4
Compare
Should be fixed now. The progress failed status is now updated when the download fails. Displaying the error in DownloadMonitor will be improved in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5242ff6
to
9ca4173
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
db6a4f9
to
7ea20ca
Compare
At least I can't get it to fail without it showing the correct error state in ModDownloadMonitor anymore. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7ea20ca
to
9ca4173
Compare
No description provided.