From 6d85e337d2773450d1fb1dd7b16408aa88cc00fc Mon Sep 17 00:00:00 2001 From: kske Date: Sun, 22 Nov 2020 11:11:48 +0100 Subject: [PATCH] Remove fixed size support from SceneContext --- .../src/main/java/envoy/client/ui/SceneContext.java | 2 -- client/src/main/java/envoy/client/ui/SceneInfo.java | 12 +----------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/client/src/main/java/envoy/client/ui/SceneContext.java b/client/src/main/java/envoy/client/ui/SceneContext.java index 5af7fd0..a255f81 100644 --- a/client/src/main/java/envoy/client/ui/SceneContext.java +++ b/client/src/main/java/envoy/client/ui/SceneContext.java @@ -73,8 +73,6 @@ public final class SceneContext implements EventListener { scene.setRoot(root); } - stage.setResizable(info.resizable); - // Remove previous keyboard shortcuts scene.getAccelerators().clear(); diff --git a/client/src/main/java/envoy/client/ui/SceneInfo.java b/client/src/main/java/envoy/client/ui/SceneInfo.java index 9f851e6..801e947 100644 --- a/client/src/main/java/envoy/client/ui/SceneInfo.java +++ b/client/src/main/java/envoy/client/ui/SceneInfo.java @@ -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; } } \ No newline at end of file