fix(@desktop/wallet): Multinetwork QR code sometimes doesn't update when there is only 1 network left

fixes #6496
This commit is contained in:
Khushboo Mehta 2022-07-19 18:57:07 +02:00 committed by Khushboo-dev-cpp
parent b6f16c8a47
commit 189d793b87
1 changed files with 9 additions and 0 deletions

View File

@ -41,6 +41,15 @@ StatusModal {
showHeader: false
showAdvancedHeader: true
// When no network is selected reset the prefix to empty string
Connections {
target: RootStore.enabledNetworks
function onModelReset() {
if(RootStore.enabledNetworks.count === 0)
popup.networkPrefix = ""
}
}
hasFloatingButtons: true
advancedHeaderComponent: StatusFloatingButtonsSelector {
id: floatingHeader