diff --git a/src/main/java/org/cryptomator/ui/notification/NotificationController.java b/src/main/java/org/cryptomator/ui/notification/NotificationController.java index ef2b95b37..6fe558ec5 100644 --- a/src/main/java/org/cryptomator/ui/notification/NotificationController.java +++ b/src/main/java/org/cryptomator/ui/notification/NotificationController.java @@ -75,14 +75,13 @@ public class NotificationController implements FxController { @FXML public void initialize() { + window.setOnShowing(_ -> selectionIndex.set(0)); selectionIndex.addListener((_, _, n) -> { if (!events.isEmpty()) { selectedEvent.setValue(events.get(n.intValue())); } }); selectedEvent.addListener(this::selectTexts); - - selectionIndex.setValue(0); } private void selectTexts(ObservableValue observable, VaultEvent oldEvent, VaultEvent newEvent) {