mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user