From: Debayan Sutradhar Date: Fri, 11 Jun 2021 14:10:36 +0530 Subject: Update README.md, Refactored Settings Screen Timeout UI --- Update README.md, Refactored Settings Screen Timeout UI --- --- 'a/README.md' +++ b/README.md @@ -7,7 +7,8 @@ - Java >= 11 - Maven >= 3.6.3 -Note: If compiling the Android binary (apk) then Graalvm 21.x JDK should be used. +Note: If compiling the Android binary (apk) then GraalVM 21.1.0 (Java 11) should be used as JDK, or the path to it should be +set as value of environment variable `GRAALVM_HOME`. ## Quick Start --- 'a/src/main/java/com/stream_pi/client/window/settings/GeneralTab.java' +++ b/src/main/java/com/stream_pi/client/window/settings/GeneralTab.java @@ -192,6 +192,7 @@ public class GeneralTab extends VBox screenTimeoutSecondsHBoxInputBox = new HBoxInputBox("Screen Timeout (seconds)", screenTimeoutTextField, prefWidth); screenTimeoutSecondsHBoxInputBox.managedProperty().bind(screenTimeoutSecondsHBoxInputBox.visibleProperty()); + screenTimeoutTextField.disableProperty().bind(screenSaverToggleSwitch.selectedProperty().not()); VBox vBox = new VBox( new HBoxInputBox("Device Name", nickNameTextField, prefWidth), @@ -316,9 +317,8 @@ public class GeneralTab extends VBox } - screenTimeoutSecondsHBoxInputBox.setVisible(StartupFlags.SCREEN_SAVER_FEATURE); screenSaverHBox.setVisible(StartupFlags.SCREEN_SAVER_FEATURE); - + screenTimeoutSecondsHBoxInputBox.setVisible(StartupFlags.SCREEN_SAVER_FEATURE); } private Logger getLogger() @@ -440,8 +440,6 @@ public class GeneralTab extends VBox screenTimeoutTextField.setText(config.getScreenSaverTimeout()+""); screenSaverToggleSwitch.setSelected(config.isScreenSaverEnabled()); - screenTimeoutSecondsHBoxInputBox.setVisible(config.isScreenSaverEnabled()); - clientProfileComboBox.setOptions(clientListener.getClientProfiles().getClientProfiles()); int ind = 0;