-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Is it possible to check to see if the file is *already* downloaded? #7272
Comments
Not currently AFAICT. Happy to review a PR adding that |
I am happy to contribute, there are a couple of different ways this could be addressed:
I am strongly leaning towards option 3, thoughts? |
AFAICT, the logic flow doesn't allow any of those approaches. Are you willing to adjust your UX flow? Instead of having two prompts/notifications, use something "Download & Install" as the only notification prompt? I'm still trying to brainstorm how we could achieve the |
When our app starts we register for multiple events from autoUpdater. We observe that when an update is available the 'update-available' event is triggered, and when the update has completed downloading the 'update-downloaded' event is triggered.
However, if the update was already downloaded, the 'update-available' event triggers before the 'update-downloaded' event triggers. This means that we prompt the user to download the update, and then IMMEDIATELY tell the user that it is downloaded.
We would be able to work around this issue if the cacheDir was exposed so that we could check to see if the file exists before prompting our users to download the update.
The text was updated successfully, but these errors were encountered: