Fixed issue caused when trying to update the splash frame status in a headless environment.

This commit is contained in:
CalDescent 2021-10-03 19:43:10 +01:00
parent b6d3e82304
commit 4f48751d0b

View File

@ -68,6 +68,10 @@ public class SplashFrame {
}
private SplashFrame() {
if (GraphicsEnvironment.isHeadless()) {
return;
}
this.splashDialog = new JFrame();
List<Image> icons = new ArrayList<>();
@ -106,7 +110,9 @@ public class SplashFrame {
}
public void updateStatus(String text) {
if (this.splashPanel != null) {
this.splashPanel.updateStatus(text);
}
}
}