Fixed account not shown in side menu after being configured

This commit is contained in:
Sylvain Berfini 2021-10-11 10:28:56 +02:00
parent 4337dd5da8
commit 7c73d1e535

View file

@ -51,7 +51,9 @@ class SideMenuViewModel : ViewModel() {
message: String message: String
) { ) {
// +1 is for the default account, otherwise this will trigger every time // +1 is for the default account, otherwise this will trigger every time
if (coreContext.core.accountList.size != accounts.value.orEmpty().size + 1) { if (accounts.value.isNullOrEmpty() ||
coreContext.core.accountList.size != accounts.value.orEmpty().size + 1
) {
// Only refresh the list if an account has been added or removed // Only refresh the list if an account has been added or removed
updateAccountsList() updateAccountsList()
} }