Minor fix
- Moved initStyle() call to prevent crash
This commit is contained in:
parent
f9c35eb9eb
commit
893fd1c672
@ -49,6 +49,9 @@ public class Main extends Application {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage primaryStage) throws Exception{
|
public void start(Stage primaryStage) throws Exception{
|
||||||
|
|
||||||
|
primaryStage.initStyle(StageStyle.UNDECORATED);
|
||||||
|
|
||||||
if(args.length<2 || !args[1].equals("false")){
|
if(args.length<2 || !args[1].equals("false")){
|
||||||
Stage d = new Stage();
|
Stage d = new Stage();
|
||||||
Timeline t = new Timeline();
|
Timeline t = new Timeline();
|
||||||
@ -63,9 +66,7 @@ public class Main extends Application {
|
|||||||
});
|
});
|
||||||
t1.setDaemon(true);
|
t1.setDaemon(true);
|
||||||
t1.start();
|
t1.start();
|
||||||
} else primaryStage.show();
|
} else primaryStage.show(); // Remove ugly trash
|
||||||
|
|
||||||
primaryStage.initStyle(StageStyle.UNDECORATED); // Remove ugly trash
|
|
||||||
|
|
||||||
root = (Pane) Tabs.load("main"); // Load via layout loader
|
root = (Pane) Tabs.load("main"); // Load via layout loader
|
||||||
((Label)root.lookup("#version")).setText(((Label) root.lookup("#version")) // Dynamically set version label
|
((Label)root.lookup("#version")).setText(((Label) root.lookup("#version")) // Dynamically set version label
|
||||||
|
Loading…
x
Reference in New Issue
Block a user