Merged in development.
This commit is contained in:
@@ -116,7 +116,7 @@ public class App extends Application {
|
||||
boatTask,
|
||||
() -> {
|
||||
try {
|
||||
showMainStage();
|
||||
showMainStage(new Stage());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@@ -146,8 +146,9 @@ public class App extends Application {
|
||||
* Show the main stage after the splash screen
|
||||
* @throws Exception
|
||||
*/
|
||||
private void showMainStage() throws Exception {
|
||||
stage = new Stage(StageStyle.DECORATED);
|
||||
public void showMainStage(Stage stage) throws Exception {
|
||||
App.stage = stage;
|
||||
App.app = this;
|
||||
FXMLLoader loader = new FXMLLoader(getClass().getResource("/visualiser/scenes/main.fxml"));
|
||||
Parent root = loader.load();
|
||||
stage.setResizable(false);
|
||||
|
||||
Reference in New Issue
Block a user