Fixed account not shown in side menu after being configured
This commit is contained in:
parent
4337dd5da8
commit
7c73d1e535
1 changed files with 3 additions and 1 deletions
|
@ -51,7 +51,9 @@ class SideMenuViewModel : ViewModel() {
|
|||
message: String
|
||||
) {
|
||||
// +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
|
||||
updateAccountsList()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue