Remove fixed size support from SceneContext

This commit is contained in:
Kai S. K. Engelbart 2020-11-22 11:11:48 +01:00
parent 67ebc6be83
commit 6d85e337d2
Signed by: kske
GPG Key ID: 8BEB13EC5DF7EF13
2 changed files with 1 additions and 13 deletions

View File

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

View File

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