浏览代码

removed duplicate code

Jan-Peter Klein 9 月之前
父节点
当前提交
c5d4c9a9c1
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      src/main/java/org/cryptomator/ui/controls/NotificationBar.java

+ 0 - 7
src/main/java/org/cryptomator/ui/controls/NotificationBar.java

@@ -54,13 +54,6 @@ public class NotificationBar extends HBox {
 		});
 		closeButton.visibleProperty().bind(dismissable);
 
-		closeButton.setOnAction(_ -> {
-			visibleProperty().unbind();
-			managedProperty().unbind();
-			visibleProperty().set(false);
-			managedProperty().set(false);
-		});
-
 		getChildren().addAll(spacer, leftRegion, vbox, rightRegion, closeButton);
 
 		visibleProperty().bind(notifyProperty());