@@ -84,6 +84,36 @@ private void initialize() {
8484 LOG .debug ("set versionLabel text" );
8585 versionLabel .setText (Main .VERSION );
8686
87+ if (System .getProperty ("os.name" ).contains ("Linux" )) {
88+ if (useHotkeyCheckBox != null ) {
89+ LOG .debug ("useHotkeyCheckBox is initialized" );
90+ useHotkeyCheckBox .setDisable (true );
91+ } else {
92+ LOG .warn ("useHotkeyCheckBox is null" );
93+ }
94+
95+ if (useHotkeyLabel != null ) {
96+ LOG .debug ("useHotkeyLabel is initialized" );
97+ useHotkeyLabel .setDisable (true );
98+ } else {
99+ LOG .warn ("useHotkeyLabel is null" );
100+ }
101+
102+ if (hotkeyLabel != null ) {
103+ LOG .debug ("hotkeyLabel is initialized" );
104+ hotkeyLabel .setDisable (true );
105+ } else {
106+ LOG .warn ("hotkeyLabel is null" );
107+ }
108+
109+ if (globalKeyloggerLabel != null ) {
110+ LOG .debug ("globalKeyloggerLabel is initialized" );
111+ globalKeyloggerLabel .setDisable (true );
112+ } else {
113+ LOG .warn ("globalKeyloggerLabel is null" );
114+ }
115+ }
116+
87117 LOG .debug ("saveButton.setOnAction" );
88118 saveButton .setOnAction (ae -> {
89119 LOG .info ("Save clicked" );
@@ -156,13 +186,6 @@ private void initialize() {
156186 parser .parseConfig (new File (INPUT_FILE ));
157187 }
158188 });
159-
160- if (System .getProperty ("os.name" ).contains ("Linux" )) {
161- useHotkeyCheckBox .setDisable (true );
162- useHotkeyLabel .setDisable (true );
163- hotkeyLabel .setDisable (true );
164- globalKeyloggerLabel .setDisable (true );
165- }
166189 }
167190
168191 public void setController (final Controller controller ) {
0 commit comments