mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
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:
committed by
intellij-monorepo-bot
parent
6cb7368627
commit
ec6d64bcbe
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user