Skip to content

Commit 270d4d4

Browse files
committed
Fix IDE comment not updating from link flow
I am not sure why this was behind invokeLater.
1 parent 296ff94 commit 270d4d4

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

src/main/kotlin/com/coder/gateway/views/steps/CoderWorkspaceStepView.kt

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -114,22 +114,20 @@ class CoderWorkspaceStepView(
114114
cbIDE = cell(IDEComboBox(ideComboBoxModel).apply {
115115
addActionListener {
116116
nextButton.isEnabled = this.selectedItem != null
117-
ApplicationManager.getApplication().invokeLater {
118-
logger.info("Selected IDE: ${this.selectedItem}")
119-
cbIDEComment.foreground = UIUtil.getContextHelpForeground()
120-
when (this.selectedItem?.status) {
121-
IdeStatus.ALREADY_INSTALLED ->
122-
cbIDEComment.text =
123-
CoderGatewayBundle.message("gateway.connector.view.coder.remoteproject.ide.installed.comment")
124-
125-
IdeStatus.DOWNLOAD ->
126-
cbIDEComment.text =
127-
CoderGatewayBundle.message("gateway.connector.view.coder.remoteproject.ide.download.comment")
128-
129-
else ->
130-
cbIDEComment.text =
131-
CoderGatewayBundle.message("gateway.connector.view.coder.remoteproject.ide.none.comment")
132-
}
117+
logger.info("Selected IDE: ${this.selectedItem}")
118+
cbIDEComment.foreground = UIUtil.getContextHelpForeground()
119+
when (this.selectedItem?.status) {
120+
IdeStatus.ALREADY_INSTALLED ->
121+
cbIDEComment.text =
122+
CoderGatewayBundle.message("gateway.connector.view.coder.remoteproject.ide.installed.comment")
123+
124+
IdeStatus.DOWNLOAD ->
125+
cbIDEComment.text =
126+
CoderGatewayBundle.message("gateway.connector.view.coder.remoteproject.ide.download.comment")
127+
128+
else ->
129+
cbIDEComment.text =
130+
CoderGatewayBundle.message("gateway.connector.view.coder.remoteproject.ide.none.comment")
133131
}
134132
}
135133
}).resizableColumn().align(AlignX.FILL).component

0 commit comments

Comments
 (0)