Use first visible frame if project is null

GitOrigin-RevId: af50ec59aa9cea4eee9c94764b5a2aa5642ecada
This commit is contained in:
Alexander Lobas
2019-12-18 20:02:55 +00:00
committed by intellij-monorepo-bot
parent 4b542347a1
commit 5b2e6d65a3
@@ -312,6 +312,9 @@ public final class NotificationsManagerImpl extends NotificationsManager {
frame = frame.getOwner();
}
}
if (frame == null && project == null) {
frame = WindowManager.getInstance().findVisibleFrame();
}
return frame;
}