Skip to content

Commit db7e351

Browse files
committed
fix: display unsupported OS message only when workspace is running
1 parent 4927e41 commit db7e351

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
### Fixed
1515
- icon rendering on `macOS`
1616
- `darwin` agents are now recognized as `macOS`
17+
- unsupported OS warning is displayed only for running workspaces
1718

1819
## 2.1.3 - 2022-12-09
1920

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class CoderWorkspacesStepView(val enableNextButtonCallback: (Boolean) -> Unit) :
122122
setSelectionMode(ListSelectionModel.SINGLE_SELECTION)
123123
selectionModel.addListSelectionListener {
124124
enableNextButtonCallback(selectedObject != null && selectedObject?.agentStatus == RUNNING && selectedObject?.agentOS == OS.LINUX)
125-
if (selectedObject?.agentOS != OS.LINUX) {
125+
if (selectedObject?.agentStatus == RUNNING && selectedObject?.agentOS != OS.LINUX) {
126126
notificationBanner.apply {
127127
component.isVisible = true
128128
showInfo(CoderGatewayBundle.message("gateway.connector.view.coder.workspaces.unsupported.os.info"))

0 commit comments

Comments
 (0)