Skip to content

Commit 00b6b42

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

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

+4-8
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,10 @@ public void start(final Stage stage) throws Exception {
146146
GUIState.setHostServices(this.getHostServices());
147147
final Stage splashStage = new Stage(StageStyle.TRANSPARENT);
148148

149-
if (AbstractJavaFxApplicationSupport.splashScreen.visible()) {
150-
final Scene splashScene = new Scene(splashScreen.getParent(), Color.TRANSPARENT);
151-
splashStage.setScene(splashScene);
152-
splashStage.getIcons().addAll(defaultIcons);
153-
splashStage.initStyle(StageStyle.TRANSPARENT);
154-
beforeShowingSplash(splashStage);
155-
splashStage.show();
156-
}
149+
if (AbstractJavaFxApplicationSupport.splashScreen.visible()) {
150+
final Scene splashScene = new Scene(splashScreen.getParent(), Color.TRANSPARENT);
151+
splashStage.setScene(splashScene);
152+
}
157153

158154
final Runnable showMainAndCloseSplash = () -> {
159155
showInitialView();

0 commit comments

Comments
 (0)