File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
src/main/kotlin/com/coder/toolbox Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ class CoderRemoteProvider(
167
167
close()
168
168
// force auto-login
169
169
firstRun = true
170
- goToEnvironmentsPage ()
170
+ context.envPageManager.showPluginEnvironmentsPage ()
171
171
break
172
172
}
173
173
}
@@ -324,18 +324,6 @@ class CoderRemoteProvider(
324
324
}
325
325
}
326
326
327
- /* *
328
- * Make Toolbox ask for the page again. Use any time we need to change the
329
- * root page (for example, sign-in or the environment list).
330
- *
331
- * When moving between related pages, instead use ui.showUiPage() and
332
- * ui.hideUiPage() which stacks and has built-in back navigation, rather
333
- * than using multiple root pages.
334
- */
335
- private fun goToEnvironmentsPage () {
336
- context.envPageManager.showPluginEnvironmentsPage()
337
- }
338
-
339
327
/* *
340
328
* Return the sign-in page if we do not have a valid client.
341
329
@@ -389,6 +377,7 @@ class CoderRemoteProvider(
389
377
environments.showLoadingMessage()
390
378
coderHeaderPage.setTitle(context.i18n.pnotr(client.url.toString()))
391
379
pollJob = poll(client, cli)
380
+ context.envPageManager.showPluginEnvironmentsPage()
392
381
}
393
382
394
383
private fun MutableStateFlow<LoadableState<List<CoderRemoteEnvironment>>>.showLoadingMessage () {
You can’t perform that action at this time.
0 commit comments