mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-79907 Balloons and tool window notifications appear and disappear immediately when I click idea to get it focused
This commit is contained in:
+1
-1
@@ -246,7 +246,7 @@ public class NotificationsManagerImpl extends NotificationsManager implements No
|
||||
final ProjectManager projectManager = ProjectManager.getInstance();
|
||||
boolean noProjects = projectManager.getOpenProjects().length == 0;
|
||||
boolean sticky = NotificationDisplayType.STICKY_BALLOON == displayType || noProjects;
|
||||
final Balloon balloon = createBalloon(notification, false, !sticky, !sticky);
|
||||
final Balloon balloon = createBalloon(notification, false, false, !sticky);
|
||||
Disposer.register(project != null ? project : ApplicationManager.getApplication(), balloon);
|
||||
((IdeFrameImpl)window).getBalloonLayout().add(balloon);
|
||||
if (noProjects && NotificationDisplayType.BALLOON == displayType) {
|
||||
|
||||
Reference in New Issue
Block a user