mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
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:
parent
184745cf1b
commit
c290562ce1
@ -39,7 +39,7 @@ StatusComboBox {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (d.currentModel.count > 0) {
|
if (!multiSelection && d.currentModel.count > 0) {
|
||||||
d.selectedChainName = d.currentModel.rowData(d.currentIndex, "chainName")
|
d.selectedChainName = d.currentModel.rowData(d.currentIndex, "chainName")
|
||||||
d.selectedIconUrl = d.currentModel.rowData(d.currentIndex, "iconUrl")
|
d.selectedIconUrl = d.currentModel.rowData(d.currentIndex, "iconUrl")
|
||||||
root.toggleNetwork(ModelUtils.get(d.currentModel, d.currentIndex))
|
root.toggleNetwork(ModelUtils.get(d.currentModel, d.currentIndex))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user