Refactor: Improve connection state display in UI (#2353)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-07-05 22:32:03 +00:00 committed by GitHub
parent 5fdf383539
commit fa0679b3f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 110 additions and 88 deletions

View file

@ -473,7 +473,7 @@ private fun TopBarActions(
) {
val ourNode by viewModel.ourNodeInfo.collectAsStateWithLifecycle()
val isConnected by viewModel.isConnected.collectAsStateWithLifecycle(false)
AnimatedVisibility(ourNode != null && currentDestination?.isTopLevel() == true) {
AnimatedVisibility(ourNode != null && currentDestination?.isTopLevel() == true && isConnected) {
ourNode?.let {
NodeChip(
node = it,