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

Add frontier url check to update check. Make update checks async. #98

Closed
wants to merge 6 commits into from

Conversation

rankynbass
Copy link
Contributor

I borrowed some code from XL's Updates.cs to grab a lease object from kamori, and put it in the UpdateCheck class. If the task doesn't get a valid response in 15s, it will fallback to a hard-coded value. Also changed the timeout for the version check to 15s.

Since we don't want to stall the UI loading, I made async calls to them in the LauncherApp constructor, and set a couple of bool values when they complete. The launcher object also doesn't get created until the frontier url is found. This required some slight tweaking to the NewsPage, and a slightly larger tweak to MainPage, so that login will wait for those checks to complete. If DoVersionCheck is set to false in the launcher.ini, the version check and frontier check will both return default values and be skipped.

Since the update check is now asynchronous, I removed the FLATPAK directives.

* don't allow logon until update check completes
* if update is needed, interrupt login unless
update warning already shown or DoVersionCheck is false.
* Set frontier and version checks to 15s
* Add option in Settings to skip version check
@rankynbass rankynbass marked this pull request as ready for review November 25, 2023 06:21
@rankynbass rankynbass closed this Sep 21, 2024
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