File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
java/de/doubleslash/keeptime/view Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,15 @@ public class SettingsController {
6161
6262 @ FXML
6363 private Label versionLabel ;
64+
65+ @ FXML
66+ private Label useHotkeyLabel ;
67+
68+ @ FXML
69+ private Label hotkeyLabel ;
70+
71+ @ FXML
72+ private Label globalKeyloggerLabel ;
6473
6574 private final Logger log = LoggerFactory .getLogger (this .getClass ());
6675 private Controller controller ;
@@ -69,6 +78,13 @@ public class SettingsController {
6978
7079 @ FXML
7180 private void initialize () {
81+ if (System .getProperty ("os.name" ).contains ("Linux" )) {
82+
83+ useHotkeyCheckBox .setVisible (false );
84+ useHotkeyLabel .setVisible (false );
85+ hotkeyLabel .setVisible (false );
86+ globalKeyloggerLabel .setVisible (false );
87+ }
7288 versionLabel .setText (Main .VERSION );
7389 saveButton .setOnAction (ae -> {
7490 log .info ("Save clicked" );
Original file line number Diff line number Diff line change 100100 <children >
101101 <HBox spacing =" 10.0" >
102102 <children >
103- <Label text =" Hotkey" />
104- <Label alignment =" TOP_LEFT" contentDisplay =" TOP" disable =" true" prefWidth =" 100.0" text =" (global keylogger!)" />
103+ <Label fx : id = " hotkeyLabel " text =" Hotkey" />
104+ <Label fx : id = " globalKeyloggerLabel " alignment =" TOP_LEFT" contentDisplay =" TOP" disable =" true" prefWidth =" 100.0" text =" (global keylogger!)" />
105105 </children >
106106 </HBox >
107107 <HBox spacing =" 10.0" >
108108 <children >
109- <Label alignment =" TOP_LEFT" contentDisplay =" TOP" prefWidth =" 100.0" text =" Use Hotkey" />
109+ <Label fx : id = " useHotkeyLabel " alignment =" TOP_LEFT" contentDisplay =" TOP" prefWidth =" 100.0" text =" Use Hotkey" />
110110 <CheckBox fx : id =" useHotkeyCheckBox" mnemonicParsing =" false" text =" Use Hotkey (Strg+Win)" />
111111 </children >
112112 </HBox >
You can’t perform that action at this time.
0 commit comments