Skip to content

Commit 4c1005b

Browse files
committed
De-cluttered "UP" remote status by removing the server name
1 parent ebecc28 commit 4c1005b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/main/java/com/projectswg/launcher/resources/gui/ServerListView.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,9 @@ class ServerListView : View() {
115115
passwordfield(LauncherData.INSTANCE.login.activeServerProperty.select { it.authenticationProperty }.select { it.passwordProperty })
116116
}
117117
field(messages["servers.column.remoteStatus"]) {
118-
val loginName = LauncherData.INSTANCE.login.activeServerProperty.select { it.instanceInfo.loginNameProperty }
119118
val loginStatus = LauncherData.INSTANCE.login.activeServerProperty.select { it.instanceInfo.loginStatusProperty }
120-
val loginNameExists = loginName.select { ReadOnlyBooleanWrapper(it.isNotEmpty()) }
121-
val loginStatusWithBrackets = loginStatus.select { ReadOnlyStringWrapper(if (loginNameExists.value) "[$it]" else it) }
122-
val remoteStatus = loginName.stringBinding(loginStatusWithBrackets) { (if (loginNameExists.value) "$it " else "") + loginStatusWithBrackets.value }
123119

124-
label(remoteStatus) {
120+
label(loginStatus) {
125121
maxWidth = Double.POSITIVE_INFINITY
126122
isFillWidth = true
127123

0 commit comments

Comments
 (0)