Skip to content

Commit

Permalink
Fix displayed information for KServer connector
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Sep 5, 2024
1 parent 0746fe3 commit 9d0a721
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class KServerStateVH(parent: ViewGroup) :
) -> Unit = { item, _ ->
title.text = when {
item.credentials.serverAdress.domain.endsWith(".darken.eu") -> {
"${getString(R.string.sync_kserver_type_label)} (${item.credentials.serverAdress})"
"${getString(R.string.sync_kserver_type_label)} (${item.credentials.serverAdress.domain})"
}

else -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ class KServerConnector @AssistedInject constructor(

serverLock.withLock {
withContext(NonCancellable) { block() }
}.also {
_state.updateBlocking { copy(lastError = null) }
}
} catch (e: Exception) {
log(TAG, ERROR) { "runServerAction($tag) failed: ${e.asLog()}" }
Expand Down

0 comments on commit 9d0a721

Please sign in to comment.