Skip to content

Commit 9f591ac

Browse files
committed
No naked booleans
1 parent 14a5651 commit 9f591ac

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/main/kotlin/com/coder/gateway/CoderRemoteProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class CoderRemoteProvider(
161161
* List of actions that appear next to the account.
162162
*/
163163
override fun getAdditionalPluginActions(): List<RunnableActionDescription> = listOf(
164-
Action("Settings", false) {
164+
Action("Settings", closesPage = false) {
165165
ui.showUiPage(settingsPage)
166166
},
167167
)

src/main/kotlin/com/coder/gateway/views/CoderSettingsPage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CoderSettingsPage(private val settings: CoderSettingsService) : CoderPage(
4747
override fun getTitle(): String = "Coder Settings"
4848

4949
override fun getActionButtons(): MutableList<RunnableActionDescription> = mutableListOf(
50-
Action("Save", true) {
50+
Action("Save", closesPage = true) {
5151
settings.binarySource = get(binarySourceField) as String
5252
settings.binaryDirectory = get(binaryDirectoryField) as String
5353
settings.dataDirectory = get(dataDirectoryField) as String

src/main/kotlin/com/coder/gateway/views/ConnectPage.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ class ConnectPage(
5454
* Show a retry button on error.
5555
*/
5656
override fun getActionButtons(): MutableList<RunnableActionDescription> = listOfNotNull(
57-
if (errorField != null) Action("Retry", false) { retry() } else null,
58-
if (errorField != null) Action("Cancel", false) { onCancel() } else null,
57+
if (errorField != null) Action("Retry", closesPage = false) { retry() } else null,
58+
if (errorField != null) Action("Cancel", closesPage = false) { onCancel() } else null,
5959
).toMutableList()
6060

6161
/**

src/main/kotlin/com/coder/gateway/views/SignInPage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class SignInPage(
3838
* Buttons displayed at the bottom of the page.
3939
*/
4040
override fun getActionButtons(): MutableList<RunnableActionDescription> = mutableListOf(
41-
Action("Sign In", false) { submit() },
41+
Action("Sign In", closesPage = false) { submit() },
4242
)
4343

4444
/**

src/main/kotlin/com/coder/gateway/views/TokenPage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class TokenPage(
4646
* Buttons displayed at the bottom of the page.
4747
*/
4848
override fun getActionButtons(): MutableList<RunnableActionDescription> = mutableListOf(
49-
Action("Connect", false) { submit(get(tokenField) as String) },
49+
Action("Connect", closesPage = false) { submit(get(tokenField) as String) },
5050
)
5151

5252
/**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy