[Mobile] Fix startup if no internet

This commit is contained in:
Anthony Calosa
2022-03-06 20:32:49 +08:00
parent fbb8fed858
commit 2c0fb81335

View File

@@ -112,10 +112,13 @@ public class AssetsDownloader {
else { else {
message += "You cannot start the app since you haven't previously downloaded these files."; message += "You cannot start the app since you haven't previously downloaded these files.";
} }
SOptionPane.showMessageDialog(message, "No Internet Connection"); switch (SOptionPane.showOptionDialog(message, "No Internet Connection", null, ImmutableList.of("Ok"))) {
default: {
if (!canIgnoreDownload) { if (!canIgnoreDownload) {
Forge.exitAnimation(false); //exit if can't ignore download Forge.exitAnimation(false); //exit if can't ignore download
} }
}
}
return; return;
} }