From 102ab93dbd595b340e7444469056a2ef3891032f Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Tue, 13 Jul 2021 15:52:53 +0200 Subject: [PATCH] Add introductory screen to check view if main run is not started --- .../cryptomator/ui/health/CheckListController.java | 11 +++++++---- src/main/resources/fxml/health_check_list.fxml | 9 +++++---- src/main/resources/i18n/strings.properties | 3 --- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/health/CheckListController.java b/src/main/java/org/cryptomator/ui/health/CheckListController.java index daeaf3667..7e087b8b5 100644 --- a/src/main/java/org/cryptomator/ui/health/CheckListController.java +++ b/src/main/java/org/cryptomator/ui/health/CheckListController.java @@ -68,10 +68,13 @@ public class CheckListController implements FxController { } @FXML - public void toggleSelectAll(ActionEvent event) { - if (event.getSource() instanceof CheckBox c) { - checks.forEach(t -> t.chosenForExecutionProperty().set(c.isSelected())); - } + public void selectAllChecks() { + checks.forEach(t -> t.chosenForExecutionProperty().set(true)); + } + + @FXML + public void deselectAllChecks() { + checks.forEach(t -> t.chosenForExecutionProperty().set(false)); } @FXML diff --git a/src/main/resources/fxml/health_check_list.fxml b/src/main/resources/fxml/health_check_list.fxml index be749a978..61309f8f1 100644 --- a/src/main/resources/fxml/health_check_list.fxml +++ b/src/main/resources/fxml/health_check_list.fxml @@ -24,10 +24,11 @@ - -