IDEA-207320 Empty system tray icon with no popup hint or right-click menu (update icon every time before notify)

GitOrigin-RevId: cef813941208914c620ec590b259c1de74c7e866
This commit is contained in:
Alexander Lobas
2019-07-02 06:52:16 +03:00
committed by intellij-monorepo-bot
parent 174f0d5523
commit 944b89ffbf
@@ -44,9 +44,11 @@ final class SystemTrayNotifications implements SystemNotificationsImpl.Notifier
}
private final TrayIcon myTrayIcon;
private final Image myImage;
private final TrayIcon.MessageType myType;
private SystemTrayNotifications(@NotNull Image image, @NotNull TrayIcon.MessageType type) throws AWTException {
myImage = image;
myType = type;
String tooltip = ApplicationInfoImpl.getShadowInstance().getFullApplicationName();
@@ -62,6 +64,7 @@ final class SystemTrayNotifications implements SystemNotificationsImpl.Notifier
@Override
public void notify(@NotNull String name, @NotNull String title, @NotNull String description) {
myTrayIcon.setImage(myImage);
myTrayIcon.displayMessage(title, description, myType);
}
}