Fix missing metrics for popup

UiNotifyConnector.doWhenFirstShown has isDeferred=true by default, and this leads to the situation when we first show popup and only then add WindowListener. In this case windowOpened is not triggered and metric is missing.

GitOrigin-RevId: 18d17fbf186ab781da369ab00a83a7871206af7d
This commit is contained in:
Maxim.Kolmakov
2024-08-30 15:21:25 +02:00
committed by intellij-monorepo-bot
parent 6cb7368627
commit ec6d64bcbe

View File

@@ -863,7 +863,7 @@ object Utils {
return
}
UiNotifyConnector.doWhenFirstShown(component) {
UiNotifyConnector.doWhenFirstShown(component, isDeferred = false) {
UIUtil.getWindow(component)?.addWindowListener(object : WindowAdapter() {
override fun windowOpened(e: WindowEvent) {
val time = TimeoutUtil.getDurationMillis(startNanos)