Skip to content
Snippets Groups Projects
Commit 30b302b1 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

check for update if auto update check is enabled and saved

parent 7b337b3f
No related branches found
No related tags found
No related merge requests found
......@@ -136,6 +136,11 @@ public class SettingsController
radioButtonRestActivated.setToggleGroup(toggleGroup);
radioButtonRestDeactivated.setToggleGroup(toggleGroup);
refreshLabelsUpdate();
}
private void refreshLabelsUpdate()
{
Updater updater = controller.getUpdater();
labelCurrentVersion.setText(Localization.getString(Strings.VERSION_NAME));
labelLatestVersion.setText(updater.getLatestVersion().getVersionName());
......@@ -302,6 +307,12 @@ public class SettingsController
controller.refresh(controller.getFilterSettings());
controller.showNotification(Localization.getString(Strings.NOTIFICATION_SETTINGS_SAVE));
if(controller.getSettings().isAutoUpdateCheckEnabled())
{
controller.checkForUpdates(false);
refreshLabelsUpdate();
}
//restart application if language has changed
if(controller.getSettings().getLanguage() != previousLanguage)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment