Fix missing systray icon on macos.

cusax-fix
Damian Minkov 18 years ago
parent 5c55015fdc
commit 6939878a12

@ -162,9 +162,15 @@ else if (osName.startsWith("Mac OS X"))
envelopeIcon = Resources.getImage("messageIcon");
}
// default to set offline , if any protocols become
// online will set it to online
currentIcon = logoIconOffline;
if (!osName.startsWith("Mac OS X"))
{
// default to set offline , if any protocols become
// online will set it to online
currentIcon = logoIconOffline;
}
else
currentIcon = logoIcon;
trayIcon = new TrayIcon(currentIcon,
Resources.getApplicationString("applicationName"),
menu);
@ -455,13 +461,19 @@ else if (imageType == SystrayService.SC_IMG_OFFLINE_TYPE)
}
else if (imageType == SystrayService.SC_IMG_AWAY_TYPE)
{
this.trayIcon.setIcon(logoIconAway);
this.currentIcon = logoIconAway;
if (!osName.startsWith("Mac OS X"))
{
this.trayIcon.setIcon(logoIconAway);
this.currentIcon = logoIconAway;
}
}
else if (imageType == SystrayService.SC_IMG_FFC_TYPE)
{
this.trayIcon.setIcon(logoIconFFC);
if (!osName.startsWith("Mac OS X"))
{
this.trayIcon.setIcon(logoIconFFC);
this.currentIcon = logoIconFFC;
}
}
else if (imageType == SystrayService.ENVELOPE_IMG_TYPE)
{

Loading…
Cancel
Save