Merge branch 'master' into 'master'

[Mobile] Fix startup if no internet

See merge request core-developers/forge!6356
This commit is contained in:
Anthony Calosa
2022-03-06 12:34:38 +00:00

View File

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