removed duplicate code

This commit is contained in:
Jan-Peter Klein 2024-10-02 14:20:09 +02:00
parent 4bc9b1d60c
commit c5d4c9a9c1
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E

View File

@ -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());