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

added notification if no update is available,

parent 73c1423c
No related branches found
No related tags found
No related merge requests found
...@@ -99,6 +99,7 @@ public class Strings ...@@ -99,6 +99,7 @@ public class Strings
public static final String NOTIFICATION_CHART_EXPORT = "notification.chart.export"; public static final String NOTIFICATION_CHART_EXPORT = "notification.chart.export";
public static final String NOTIFICATION_REPORT_SAVE = "notification.report.save"; public static final String NOTIFICATION_REPORT_SAVE = "notification.report.save";
public static final String NOTIFICATION_SETTINGS_SAVE = "notification.settings.save"; public static final String NOTIFICATION_SETTINGS_SAVE = "notification.settings.save";
public static final String NOTIFICATION_NO_UPDATE_AVAILABLE = "notification.no.update.available";
//INFO //INFO
public static final String INFO_TITLE_CATEGORY_DELETE = "info.title.category.delete"; public static final String INFO_TITLE_CATEGORY_DELETE = "info.title.category.delete";
......
...@@ -95,7 +95,8 @@ month.december=Dezember ...@@ -95,7 +95,8 @@ month.december=Dezember
# NOTIFICATION # NOTIFICATION
notification.chart.export=Diagramm erfolgreich exportiert. notification.chart.export=Diagramm erfolgreich exportiert.
notification.report.save=Bericht erfolgreich gespeichert. notification.report.save=Bericht erfolgreich gespeichert.
notification.settings.save=Erfolgreich gespeichert notification.settings.save=Erfolgreich gespeichert.
notification.no.update.available=Kein Update verfügbar.
# INFO # INFO
info.title.category.delete=Kategorie löschen info.title.category.delete=Kategorie löschen
......
...@@ -96,6 +96,7 @@ month.december=December ...@@ -96,6 +96,7 @@ month.december=December
notification.chart.export=Chart successfully exported. notification.chart.export=Chart successfully exported.
notification.report.save=Report successfully saved. notification.report.save=Report successfully saved.
notification.settings.save=Successfully saved. notification.settings.save=Successfully saved.
notification.no.update.available=No update available.
# INFO # INFO
info.title.category.delete=Delete Category info.title.category.delete=Delete Category
......
...@@ -355,7 +355,10 @@ public class Controller ...@@ -355,7 +355,10 @@ public class Controller
String changes = updater.getChangelog(updater.getLatestVersion().getVersionCode()); String changes = updater.getChangelog(updater.getLatestVersion().getVersionCode());
if(!updateAvailable) if(!updateAvailable)
{
showNotification(Localization.getString(Strings.NOTIFICATION_NO_UPDATE_AVAILABLE));
return; return;
}
Platform.runLater(()->{ Platform.runLater(()->{
Alert alert = new Alert(AlertType.INFORMATION); Alert alert = new Alert(AlertType.INFORMATION);
...@@ -488,6 +491,7 @@ public class Controller ...@@ -488,6 +491,7 @@ public class Controller
toggleAllTabsExceptSettings(true); toggleAllTabsExceptSettings(true);
tabPane.getSelectionModel().select(tabSettings); tabPane.getSelectionModel().select(tabSettings);
}); });
return;
} }
......
...@@ -90,6 +90,7 @@ public class SettingsController ...@@ -90,6 +90,7 @@ public class SettingsController
comboBoxLanguage.setButtonCell(new LanguageCell(false)); comboBoxLanguage.setButtonCell(new LanguageCell(false));
comboBoxLanguage.setValue(LanguageType.ENGLISH); comboBoxLanguage.setValue(LanguageType.ENGLISH);
previousLanguage = LanguageType.ENGLISH; previousLanguage = LanguageType.ENGLISH;
checkboxEnableAutoUpdate.setSelected(true);
if(controller.getSettings().isComplete()) if(controller.getSettings().isComplete())
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment