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

Always enable 'Check for Updates' menu button #11485

Merged
merged 8 commits into from
Jul 17, 2024

Conversation

LoayGhreeb
Copy link
Collaborator

@LoayGhreeb LoayGhreeb commented Jul 11, 2024

  • "Help -> Check for Updates" button in the menu bar will be enabled regardless of whether the "auto-check for updates at startup" preference is enabled or disabled.
  • Fixed an issue where changing the "Preferences -> Network -> Check for latest version online" value was not being saved.

Closes https://github.com/JabRef/jabref-issue-melting-pot/issues/470

Mandatory checks

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

HoussemNasri
HoussemNasri previously approved these changes Jul 13, 2024
Copy link
Member

@HoussemNasri HoussemNasri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Comment on lines -64 to -67
if (!internalPreferences.isVersionCheckEnabled()) {
return;
}

Copy link
Member

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.

Copy link
Collaborator Author

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.

EasyBind.subscribe(preferencesService.getInternalPreferences().versionCheckEnabledProperty(), enabled -> {
if (enabled) {
new VersionWorker(buildInfo.version,
dialogService,
taskExecutor,
preferencesService)
.checkForNewVersionDelayed();
}
});

Siedlerchr
Siedlerchr previously approved these changes Jul 17, 2024
@Siedlerchr Siedlerchr dismissed stale reviews from HoussemNasri and themself via 735f93c July 17, 2024 18:49
@Siedlerchr Siedlerchr added this pull request to the merge queue Jul 17, 2024
Merged via the queue into JabRef:main with commit 03370e0 Jul 17, 2024
21 checks passed
@LoayGhreeb LoayGhreeb deleted the check-for-updates branch July 17, 2024 19:47
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.

4 participants