Skip to content

Commit 43f4d93

Browse files
fbouchedidroskenet
authored andcommitted
Removed duplicate code:
- splashStage.getIcons().addAll(defaultIcons); - beforeShowingSplash(splashStage); Fixed code format
1 parent 00b6b42 commit 43f4d93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/de/felixroske/jfxsupport/AbstractJavaFxApplicationSupport.java

+4
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ public void start(final Stage stage) throws Exception {
149149
if (AbstractJavaFxApplicationSupport.splashScreen.visible()) {
150150
final Scene splashScene = new Scene(splashScreen.getParent(), Color.TRANSPARENT);
151151
splashStage.setScene(splashScene);
152+
splashStage.getIcons().addAll(defaultIcons);
153+
splashStage.initStyle(StageStyle.TRANSPARENT);
154+
beforeShowingSplash(splashStage);
155+
splashStage.show();
152156
}
153157

154158
final Runnable showMainAndCloseSplash = () -> {

0 commit comments

Comments
 (0)