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

Check for updates at startup #11

Merged
merged 5 commits into from
Dec 14, 2021
Merged

Check for updates at startup #11

merged 5 commits into from
Dec 14, 2021

Conversation

parasyte
Copy link
Owner

@parasyte parasyte commented Nov 7, 2021

This is a large change that adds a simple periodic update check. It defaults to disabled (so the app doesn't require internet access).

The app will remember the last time it checked for updates, and also the last version it knows about. There is unusual behavior with this; If the app is closed while there is an update notification and the app is not updated, the persistence will cause the app to not show an update until another version is released. I might want to change this so the last known version is only persisted when the update notification is dismissed. But I also like that dismissal currently doesn't remove the notification from the GUI.

  • Tests
  • Decide on persistence/dismissal behavior

- Switches from async client to threaded client
- Removes about a bajillion dependencies
- Fixes persistence to show update notifications on startup
@parasyte
Copy link
Owner Author

parasyte commented Nov 7, 2021

The persistence was updated to save the release notes and update URL so that update notifications can be provided at startup without hitting GitHub's API. This fixes the unusual behavior described above.

I also replaced the async http-client crate with the threaded ureq crate to simplify the dependency tree (removing 140 small crates).

- The timer was always using its own duration, ignoring the timestamp
  persisted from previous runs.
@parasyte parasyte merged commit a1cf185 into main Dec 14, 2021
@parasyte parasyte deleted the update-notifications branch December 14, 2021 00:45
@parasyte parasyte mentioned this pull request Jan 25, 2022
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.

1 participant