From cd8f8a32e6780aeea5d244fac156d1c2253b1712 Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 4 Oct 2024 09:06:24 +0200 Subject: [PATCH] If accounts are added showing "Alle Konten" instead of "Bankmeister" --- .../kotlin/net/codinux/banking/ui/appskeleton/BottomBar.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/BottomBar.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/BottomBar.kt index 32a0371..189d0e7 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/BottomBar.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/BottomBar.kt @@ -66,7 +66,11 @@ fun BottomBar(showMenuDrawer: Boolean = true) { val selectedAccount = transactionsFilter.selectedAccount val title = if (selectedAccount == null) { - "Bankmeister" + if (banks.isEmpty()) { + "Bankmeister" + } else { + "Alle Konten" + } } else if (selectedAccount.bankAccount != null) { selectedAccount.bankAccount.displayName } else {