Expose check for updates button on android and ios

This commit is contained in:
luboslenco
2022-12-13 16:05:35 +01:00
parent c38330e500
commit 3648a4e336
+6 -2
View File
@@ -377,8 +377,12 @@ class UIMenu {
}
menuSeparator(ui);
#if !(krom_android || krom_ios)
if (menuButton(ui, tr("Check for Updates..."))) {
#if krom_android
File.loadUrl("https://play.google.com/store/apps/details?id=org.armorpaint");
#elseif krom_ios
File.loadUrl("https://apps.apple.com/app/armorpaint/id1533967534");
#else
// Retrieve latest version number
var url = "https://luboslenco.gitlab.io/armorpaint/index.html";
File.downloadBytes(url, function(bytes: Bytes) {
@@ -401,8 +405,8 @@ class UIMenu {
UIBox.showMessage(tr("Update"), tr("Unable to check for updates.\nPlease visit armorpaint.org."));
}
});
#end
}
#end
if (menuButton(ui, tr("About..."))) {
#if kha_direct3d11