mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ensure that executed in EDT
GitOrigin-RevId: b33064d714fc5b8e6b9aa02a3fd8e6f7945b2afa
This commit is contained in:
committed by
intellij-monorepo-bot
parent
60d9586a2b
commit
6916fd7384
@@ -80,13 +80,17 @@ internal class ProjectUiFrameAllocator(val options: OpenProjectTask) : ProjectFr
|
||||
}
|
||||
|
||||
override fun projectCreated(project: Project) {
|
||||
val frame = frame!!
|
||||
(WindowManager.getInstance() as WindowManagerImpl).assignFrame(frame, project)
|
||||
ApplicationManager.getApplication().invokeLater(
|
||||
{
|
||||
if (!project.isDisposed) {
|
||||
(WindowManager.getInstance() as WindowManagerImpl).assignFrame(frame ?: return@invokeLater, project)
|
||||
}
|
||||
}, ModalityState.any())
|
||||
}
|
||||
|
||||
override fun projectOpened(project: Project) {
|
||||
if (options.sendFrameBack) {
|
||||
frame!!.isAutoRequestFocus = true
|
||||
frame?.isAutoRequestFocus = true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user