From 4c1005b0ecc4eba596648afdca2ad682a3de2f47 Mon Sep 17 00:00:00 2001 From: Josh Larson Date: Wed, 6 Jul 2022 12:12:34 -0500 Subject: [PATCH] De-cluttered "UP" remote status by removing the server name --- .../com/projectswg/launcher/resources/gui/ServerListView.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/projectswg/launcher/resources/gui/ServerListView.kt b/src/main/java/com/projectswg/launcher/resources/gui/ServerListView.kt index 0575622..4c23f36 100644 --- a/src/main/java/com/projectswg/launcher/resources/gui/ServerListView.kt +++ b/src/main/java/com/projectswg/launcher/resources/gui/ServerListView.kt @@ -115,13 +115,9 @@ class ServerListView : View() { passwordfield(LauncherData.INSTANCE.login.activeServerProperty.select { it.authenticationProperty }.select { it.passwordProperty }) } field(messages["servers.column.remoteStatus"]) { - val loginName = LauncherData.INSTANCE.login.activeServerProperty.select { it.instanceInfo.loginNameProperty } val loginStatus = LauncherData.INSTANCE.login.activeServerProperty.select { it.instanceInfo.loginStatusProperty } - val loginNameExists = loginName.select { ReadOnlyBooleanWrapper(it.isNotEmpty()) } - val loginStatusWithBrackets = loginStatus.select { ReadOnlyStringWrapper(if (loginNameExists.value) "[$it]" else it) } - val remoteStatus = loginName.stringBinding(loginStatusWithBrackets) { (if (loginNameExists.value) "$it " else "") + loginStatusWithBrackets.value } - label(remoteStatus) { + label(loginStatus) { maxWidth = Double.POSITIVE_INFINITY isFillWidth = true