Improve Scene Switching #109

Merged
kske merged 5 commits from improved-scene-switching into develop 2020-11-22 11:19:42 +01:00
2 changed files with 1 additions and 13 deletions
Showing only changes of commit 6d85e337d2 - Show all commits

View File

@ -73,8 +73,6 @@ public final class SceneContext implements EventListener {
scene.setRoot(root);
}
stage.setResizable(info.resizable);
// Remove previous keyboard shortcuts
scene.getAccelerators().clear();

View File

@ -27,24 +27,14 @@ public enum SceneInfo {
*
* @since Envoy Client v0.1-beta
*/
LOGIN_SCENE("/fxml/LoginScene.fxml", false);
LOGIN_SCENE("/fxml/LoginScene.fxml");
/**
* The path to the FXML resource.
*/
public final String path;
/**
* Whether the scene should be resizable.
*/
public final boolean resizable;
SceneInfo(String path) {
this(path, true);
}
SceneInfo(String path, boolean resizable) {
this.path = path;
this.resizable = resizable;
}
}