瀏覽代碼

clear styleclass of icon view when content of ResultSeverityCell changes.

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

+ 1 - 0
main/ui/src/main/java/org/cryptomator/ui/health/ResultSeverityTableCell.java

@@ -17,6 +17,7 @@ public class ResultSeverityTableCell extends TableCell<DiagnosticResultAction, D
 	@Override
 	protected void updateItem(DiagnosticResult.Severity item, boolean empty) {
 		super.updateItem(item, empty);
+		iconView.getStyleClass().clear();
 		if (empty || item == null) {
 			setText(null);
 			setGraphic(null);