Do not show error message in decompiler in write action
#EA-209667 fixed
This commit is contained in:
@@ -42,7 +42,9 @@ class KotlinBytecodeDecompilerTask(val file: KtFile) : Task.Backgroundable(file.
|
|||||||
if (!file.isValid || file.project.isDisposed) return@runWriteAction
|
if (!file.isValid || file.project.isDisposed) return@runWriteAction
|
||||||
|
|
||||||
if (decompiledText == null) {
|
if (decompiledText == null) {
|
||||||
Messages.showErrorDialog("Cannot decompile ${file.name}", "Decompiler error")
|
ApplicationManager.getApplication().invokeLater {
|
||||||
|
Messages.showErrorDialog("Cannot decompile ${file.name}", "Decompiler error")
|
||||||
|
}
|
||||||
return@runWriteAction
|
return@runWriteAction
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user