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

View file

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