From 192e85caffb8f1c8a9dbc3d1cbad0f2f3342c147 Mon Sep 17 00:00:00 2001 From: mikrise2 Date: Fri, 24 Nov 2023 00:46:18 +0100 Subject: [PATCH] [ML4SE-136] fixed. --- .../tasktracker/ui/main/panel/MainPluginPanelFactory.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/ui/main/panel/MainPluginPanelFactory.kt b/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/ui/main/panel/MainPluginPanelFactory.kt index 4df90d3d..febb7de0 100644 --- a/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/ui/main/panel/MainPluginPanelFactory.kt +++ b/ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/ui/main/panel/MainPluginPanelFactory.kt @@ -141,9 +141,9 @@ class MainPluginPanelFactory : ToolWindowFactory { * Switches the editor to the virtualFile. */ private fun focusOnFile(virtualFile: VirtualFile) { - ApplicationManager.getApplication().invokeAndWait { + ApplicationManager.getApplication().invokeLater { FileEditorManager.getInstance(project).openFile( - virtualFile, false + virtualFile, true ) } }