Browse Source

Revert "Do not render preview if protocol between IJ & Gradle does not match (#2556)"

This reverts commit 15aa81c851.
pull/2557/head
Alexey Tsvetkov 2 years ago
parent
commit
153bf10c56
  1. 3
      gradle-plugins/preview-rpc/src/main/kotlin/org/jetbrains/compose/desktop/ui/tooling/preview/rpc/commands.kt
  2. 2
      idea-plugin/src/main/kotlin/org/jetbrains/compose/desktop/ide/preview/ui/PreviewPanel.kt

3
gradle-plugins/preview-rpc/src/main/kotlin/org/jetbrains/compose/desktop/ui/tooling/preview/rpc/commands.kt

@ -23,9 +23,8 @@ internal fun RemoteConnection.receiveAttach(
listener?.onError( listener?.onError(
"Compose Multiplatform Gradle plugin version is not compatible with Intellij plugin version" "Compose Multiplatform Gradle plugin version is not compatible with Intellij plugin version"
) )
} else {
fn()
} }
fn()
} }
} }
} }

2
idea-plugin/src/main/kotlin/org/jetbrains/compose/desktop/ide/preview/ui/PreviewPanel.kt

@ -39,7 +39,7 @@ internal class PreviewPanel(private val myProject: Project) : JBPanel<PreviewPan
clear() clear()
appendLine( appendLine(
AllIcons.General.Error, AllIcons.General.Error,
"Preview encountered an error", "Preview rendering encountered an error",
SimpleTextAttributes.REGULAR_ATTRIBUTES, SimpleTextAttributes.REGULAR_ATTRIBUTES,
null null
) )

Loading…
Cancel
Save