only close notification window on index error

This commit is contained in:
Armin Schrenk
2025-12-18 16:20:43 +01:00
parent 4ffd8f4467
commit 0fa6f0d915

View File

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