Hotfix for 'auto-check for new version' function.
This commit is contained in:
Dmitry Isaenko 2019-03-28 00:38:27 +03:00
parent 933382e0ba
commit 5d31e807dc

View file

@ -147,10 +147,11 @@ public class NSLMainController implements Initializable {
updTask.setOnSucceeded(event->{ updTask.setOnSucceeded(event->{
List<String> result = updTask.getValue(); List<String> result = updTask.getValue();
if (result != null){ if (result != null){
if (!result.get(0).isEmpty()) if (!result.get(0).isEmpty()) {
SettingsTabController.setNewVersionLink(result.get(0)); SettingsTabController.setNewVersionLink(result.get(0));
ServiceWindow.getInfoNotification(resourceBundle.getString("windowTitleNewVersionAval"), resourceBundle.getString("windowTitleNewVersionAval") + ": " + result.get(0) + "\n\n" + result.get(1)); ServiceWindow.getInfoNotification(resourceBundle.getString("windowTitleNewVersionAval"), resourceBundle.getString("windowTitleNewVersionAval") + ": " + result.get(0) + "\n\n" + result.get(1));
} }
}
else else
ServiceWindow.getInfoNotification(resourceBundle.getString("windowTitleNewVersionUnknown"), resourceBundle.getString("windowBodyNewVersionUnknown")); ServiceWindow.getInfoNotification(resourceBundle.getString("windowTitleNewVersionUnknown"), resourceBundle.getString("windowBodyNewVersionUnknown"));
}); });