瀏覽代碼

deactivate fix button

Armin Schrenk 3 年之前
父節點
當前提交
617feec111
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      main/ui/src/main/java/org/cryptomator/ui/health/ResultListCellController.java

+ 5 - 1
main/ui/src/main/java/org/cryptomator/ui/health/ResultListCellController.java

@@ -35,6 +35,8 @@ public class ResultListCellController implements FxController {
 	private void updateCellContent(ObservableValue<? extends DiagnosticResult> observable, DiagnosticResult oldVal, DiagnosticResult newVal) {
 		iconView.getStyleClass().clear();
 		actionButton.setVisible(false);
+		//TODO: see comment in case WARN
+		actionButton.setManaged(false);
 		switch (newVal.getServerity()) {
 			case INFO -> {
 				iconView.setGlyph(FontAwesome5Icon.INFO_CIRCLE);
@@ -47,7 +49,9 @@ public class ResultListCellController implements FxController {
 			case WARN -> {
 				iconView.setGlyph(FontAwesome5Icon.EXCLAMATION_TRIANGLE);
 				iconView.getStyleClass().add("glyph-icon-orange");
-				actionButton.setVisible(true);
+				//TODO: Neither is any fix implemented, nor it is ensured, that only fix is executed at a time with good ui indication
+				//	before both are not fix, do not show the button
+				//actionButton.setVisible(true);
 			}
 			case CRITICAL -> {
 				iconView.setGlyph(FontAwesome5Icon.TIMES);