forked from Qortal/qortal
Fixed issue caused when trying to update the splash frame status in a headless environment.
This commit is contained in:
parent
b6d3e82304
commit
4f48751d0b
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user