Skip to content
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

Restart downloads upon re-opening the application #1716

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

waldo121
Copy link
Contributor

@waldo121 waldo121 commented Oct 8, 2024

Fixes #1709

Since download progress is not recoverable from the electron store, I took the approach of restarting the started download instead of truly resuming it.

@waldo121 waldo121 force-pushed the bug/1709-resume-download-on-restart branch from 40407c9 to 44e685b Compare October 9, 2024 20:15
@waldo121 waldo121 changed the title Restart donwloads upon re-pening the application Restart downloads upon re-opening the application Oct 9, 2024
@waldo121 waldo121 force-pushed the bug/1709-resume-download-on-restart branch from 44e685b to d028afd Compare October 9, 2024 20:19
Comment on lines +106 to +111
if (track === undefined) {
// track is no longer in downloads, so nothing can be updated
return {
payload: downloads
};
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I randomly fell on this edge case, so I decided to handle it.

@nukeop
Copy link
Owner

nukeop commented Oct 10, 2024

Thanks for fixing that.

@nukeop nukeop merged commit 94d809a into nukeop:master Oct 10, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Downloads
2 participants