-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Always enable 'Check for Updates' menu button #11485
Conversation
Co-authored-by: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
if (!internalPreferences.isVersionCheckEnabled()) { | ||
return; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change mean, jabref will now always check on startup, if a new version is present?
This can be very annoying, if you explicitly want to stay on an older version, if the newer one has a bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method will only execute when using Help -> Check for updates, so it shouldn't perform any checks.
The other method, checkForNewVersionDelayed()
(Line 70), used to check for updates on startup, will only be called if it is enabled in the preferences.
jabref/src/main/java/org/jabref/gui/JabRefGUI.java
Lines 111 to 119 in 7e4e7d3
EasyBind.subscribe(preferencesService.getInternalPreferences().versionCheckEnabledProperty(), enabled -> { | |
if (enabled) { | |
new VersionWorker(buildInfo.version, | |
dialogService, | |
taskExecutor, | |
preferencesService) | |
.checkForNewVersionDelayed(); | |
} | |
}); |
Closes https://github.com/JabRef/jabref-issue-melting-pot/issues/470
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)