v1.4.0: increased the max length for desktop error popups
This commit is contained in:
@@ -89,11 +89,11 @@ public class DesktopLauncher {
|
|||||||
exceptionMsg = exceptionMsg.replace("\t", " ");
|
exceptionMsg = exceptionMsg.replace("\t", " ");
|
||||||
exceptionMsg = exceptionMsg.replace("'", "");
|
exceptionMsg = exceptionMsg.replace("'", "");
|
||||||
|
|
||||||
if (exceptionMsg.length() > 500){
|
if (exceptionMsg.length() > 1000){
|
||||||
exceptionMsg = exceptionMsg.substring(0, 500) + "...";
|
exceptionMsg = exceptionMsg.substring(0, 1000) + "...";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exceptionMsg.contains("Couldnt create window")){
|
if (exceptionMsg.contains("Could not create window")){
|
||||||
TinyFileDialogs.tinyfd_messageBox(title + " Has Crashed!",
|
TinyFileDialogs.tinyfd_messageBox(title + " Has Crashed!",
|
||||||
title + " was not able to initialize its graphics display, sorry about that!\n\n" +
|
title + " was not able to initialize its graphics display, sorry about that!\n\n" +
|
||||||
"This usually happens when your graphics card does not support OpenGL 2.0+, or has misconfigured graphics drivers.\n\n" +
|
"This usually happens when your graphics card does not support OpenGL 2.0+, or has misconfigured graphics drivers.\n\n" +
|
||||||
|
|||||||
Reference in New Issue
Block a user