From 0fa6f0d91511ec61fd4e7dfe2892ab9461bfd78d Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Thu, 18 Dec 2025 16:20:43 +0100 Subject: [PATCH] only close notification window on index error --- .../cryptomator/ui/notification/NotificationController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/cryptomator/ui/notification/NotificationController.java b/src/main/java/org/cryptomator/ui/notification/NotificationController.java index a5134efa3..d5c524702 100644 --- a/src/main/java/org/cryptomator/ui/notification/NotificationController.java +++ b/src/main/java/org/cryptomator/ui/notification/NotificationController.java @@ -154,7 +154,8 @@ public class NotificationController implements FxController { var size = events.size(); if (i < 0 || i >= size) { LOG.error("Selection index {} is out of bounds of list size {} during event removal. Closing Window.", i, size); - close(); + window.close(); + return; } events.remove(i);