GUI: fixed error with miss tray icon in some linux systems like gnome (#14130)

This commit is contained in:
Johannes Wolf 2025-12-19 16:15:01 +01:00 committed by GitHub
parent a3e155918b
commit 2a3b4aff7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,13 +79,15 @@ public enum MageTray {
} catch (AWTException e) {
log.error("TrayIcon could not be added: ", e);
}
} catch (Exception e) {
log.error(e);
}
}
public synchronized void blink() {
if (trayIcon == null)
return;
if (state == 0) {
synchronized (MageTray.class) {
if (state == 0) {