Skip to content

Commit 7817774

Browse files
committed
Merge branch 'bug/Hide_Projects_not_Supported_on_linux_disable_option' of https://github.com/DavidDamke/KeepTime into DavidDamke-bug/Hide_Projects_not_Supported_on_linux_disable_option
2 parents 46abbe7 + 511fcc4 commit 7817774

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/main/java/de/doubleslash/keeptime/view/SettingsController.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ private void initialize() {
195195
useHotkeyCheckBox.setDisable(true);
196196
hotkeyLabel.setDisable(true);
197197
globalKeyloggerLabel.setDisable(true);
198+
hideProjectsOnMouseExitCheckBox.setDisable(true);
198199
}
199200

200201

@@ -242,15 +243,9 @@ private void initialize() {
242243

243244
alert.showAndWait();
244245
}
245-
if (!displayProjectsRightCheckBox.isSelected() && hideProjectsOnMouseExitCheckBox.isSelected()) {
246+
if(hideProjectsOnMouseExitCheckBox.isSelected()){
246247
hideProjectsOnMouseExitCheckBox.setSelected(false);
247-
final Alert warning = new Alert(AlertType.WARNING);
248-
warning.setTitle("Warning!");
249-
warning.setHeaderText("No Linux Support");
250-
warning.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);
251-
warning.setContentText(
252-
"The project list on the left side has no Linux support if projects should be hidden. Disabling hiding of project list.");
253-
warning.showAndWait();
248+
hideProjectsOnMouseExitCheckBox.setDisable(true);
254249
}
255250
}
256251

0 commit comments

Comments
 (0)