This PR is a simple fix for the flashing bug mentioned in #524.
The use of Stage::close with JavaFX when the window is minimized makes it flash on the taskbar.
Therefore, notifications are not closed anymore once they reach the end of their lifespan.
They are moved to another list, aDeadNotifications, and all the notifications in this list are closed and removed when a new notification is spawned. I assumed that notifications are only spawned when the window is maximized (since they are all based on user actions).
This PR is a simple fix for the flashing bug mentioned in #524.
The use of
Stage::close
with JavaFX when the window is minimized makes it flash on the taskbar. Therefore, notifications are not closed anymore once they reach the end of their lifespan.They are moved to another list,
aDeadNotifications
, and all the notifications in this list are closed and removed when a new notification is spawned. I assumed that notifications are only spawned when the window is maximized (since they are all based on user actions).