Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9f591ac

Browse files
committed
No naked booleans
1 parent14a5651 commit9f591ac

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
overridefungetAdditionalPluginActions():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
overridefungetTitle():String="Coder Settings"
4848

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

‎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
overridefungetActionButtons():MutableList<RunnableActionDescription>= listOfNotNull(
57-
if (errorField!=null)Action("Retry",false) { retry() }elsenull,
58-
if (errorField!=null)Action("Cancel",false) { onCancel() }elsenull,
57+
if (errorField!=null)Action("Retry",closesPage=false) { retry() }elsenull,
58+
if (errorField!=null)Action("Cancel",closesPage=false) { onCancel() }elsenull,
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
overridefungetActionButtons():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
overridefungetActionButtons():MutableList<RunnableActionDescription>=mutableListOf(
49-
Action("Connect",false) { submit(get(tokenField)asString) },
49+
Action("Connect",closesPage=false) { submit(get(tokenField)asString) },
5050
)
5151

5252
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp