Skip to content

Commit 49b3ee1

Browse files
committed
fix(core): simplify invokeLater call in SketchToolWindow #308
Remove unnecessary lambda and ModalityState parameter from invokeLater call for setupListener in SketchToolWindow.
1 parent 76ca561 commit 49b3ee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/kotlin/cc/unitmesh/devti/sketch/SketchToolWindow.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ open class SketchToolWindow(
156156
contentPanel.add(progressBar, BorderLayout.SOUTH)
157157

158158
if (showInput) {
159-
ApplicationManager.getApplication().invokeLater({
159+
ApplicationManager.getApplication().invokeLater {
160160
setupListener()
161-
}, ModalityState.nonModal())
161+
}
162162
}
163163

164164
setContent(contentPanel)

0 commit comments

Comments
 (0)