File tree 1 file changed +3
-6
lines changed
src/main/kotlin/com/coder/toolbox
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -72,22 +72,19 @@ class CoderRemoteEnvironment(
72
72
if (wsRawStatus.canStart() && ! workspace.outdated) {
73
73
actions.add(Action (context.i18n.ptrl(" Start" )) {
74
74
val build = client.startWorkspace(workspace)
75
- workspace = workspace.copy(latestBuild = build)
76
- update(workspace, agent)
75
+ update(workspace.copy(latestBuild = build), agent)
77
76
})
78
77
}
79
78
if (wsRawStatus.canStop()) {
80
79
actions.add(Action (context.i18n.ptrl(" Stop" )) {
81
80
val build = client.stopWorkspace(workspace)
82
- workspace = workspace.copy(latestBuild = build)
83
- update(workspace, agent)
81
+ update(workspace.copy(latestBuild = build), agent)
84
82
})
85
83
}
86
84
if (workspace.outdated) {
87
85
actions.add(Action (context.i18n.ptrl(" Update and start" )) {
88
86
val build = client.updateWorkspace(workspace)
89
- workspace = workspace.copy(latestBuild = build)
90
- update(workspace, agent)
87
+ update(workspace.copy(latestBuild = build), agent)
91
88
})
92
89
}
93
90
You can’t perform that action at this time.
0 commit comments