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

Move minimal version check to discovery file #59

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jornane
Copy link
Member

@jornane jornane commented Dec 10, 2024

Removes MinimalSupportedVersion from update.json and check the minimal supported version from within discovery.json instead.

The minimal supported version only affects whether the discovery can be used, so it makes more sense to check it there. The update check and the process for downloading a new binary and installing it is not changed, and not intended to be changed.

This change opens the way to make the update.json checking process async, to be done while the UI is already visible.

In order to make this change, some code had to be moved around. The update code did some calls to the SelfInstaller class to find out the current version number. I moved this code to Settings; that made more sense because it also contains the OAuth client ID and the application name. More things can (and probably should) be moved there, but in this PR I only moved what was necessary for this to work.

@jornane jornane requested a review from pauldekkers December 10, 2024 21:11
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