fix(@desktop/wallet): The issue is that when switching between SavedAddresses to Account, the NetworkFilter was toggling a network causing the selection to be reset

now we only do it when multiselection is false
This commit is contained in:
Khushboo Mehta 2023-05-12 14:07:35 +02:00 committed by Khushboo-dev-cpp
parent 184745cf1b
commit c290562ce1
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ StatusComboBox {
}
Component.onCompleted: {
if (d.currentModel.count > 0) {
if (!multiSelection && d.currentModel.count > 0) {
d.selectedChainName = d.currentModel.rowData(d.currentIndex, "chainName")
d.selectedIconUrl = d.currentModel.rowData(d.currentIndex, "iconUrl")
root.toggleNetwork(ModelUtils.get(d.currentModel, d.currentIndex))