Fix update check

This commit is contained in:
luboslenco
2019-04-30 16:07:25 +02:00
parent 41b712e631
commit cd713d5b4d
+1 -1
View File
@@ -566,7 +566,7 @@ class App extends iron.Trait {
var update = haxe.Json.parse(blob.toString());
var updateVersion = Std.int(update.version);
if (updateVersion > 0) {
var date = Macro.buildDate().split(" ")[0];
var date = Macro.buildDate().split(" ")[0].substr(2); // 2019 -> 19
var dateInt = Std.parseInt(StringTools.replace(date, "-", ""));
if (updateVersion > dateInt) {
arm.App.showMessageBox("Update is available!\nPlease visit armorpaint.org to download.");