mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
GUI: fixed error with miss tray icon in some linux systems like gnome (#14130)
This commit is contained in:
parent
a3e155918b
commit
2a3b4aff7a
1 changed files with 3 additions and 1 deletions
|
|
@ -79,13 +79,15 @@ public enum MageTray {
|
||||||
} catch (AWTException e) {
|
} catch (AWTException e) {
|
||||||
log.error("TrayIcon could not be added: ", e);
|
log.error("TrayIcon could not be added: ", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(e);
|
log.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void blink() {
|
public synchronized void blink() {
|
||||||
|
if (trayIcon == null)
|
||||||
|
return;
|
||||||
|
|
||||||
if (state == 0) {
|
if (state == 0) {
|
||||||
synchronized (MageTray.class) {
|
synchronized (MageTray.class) {
|
||||||
if (state == 0) {
|
if (state == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue