IDEA-330584 SvgViewer call myViewPort.layout.show() from EDT

GitOrigin-RevId: 5469deafecdfb4e60b41014cd58c918471395769
This commit is contained in:
Vladimir Kharitonov
2023-08-29 22:57:43 +00:00
committed by intellij-monorepo-bot
parent ff8a5e1a34
commit cd321dd908
@@ -243,7 +243,7 @@ class JCefImageViewer(private val myFile: VirtualFile,
myState = jsonParser.decodeFromString(s)
}
catch (_: Exception) {
myUIComponent.showError()
SwingUtilities.invokeLater { myUIComponent.showError() }
return@addHandler JBCefJSQuery.Response(null, 255, "Failed to parse the viewer state")
}