prmr / JetUML

A desktop application for fast UML diagramming.
GNU General Public License v3.0
619 stars 121 forks source link

[#524] Taskbar Flashing Bug Fix #532

Closed ArthusWQZ closed 6 months ago

ArthusWQZ commented 6 months ago

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).