From 189d793b871ffc78384a99d1487d5e3230010f11 Mon Sep 17 00:00:00 2001 From: Khushboo Mehta Date: Tue, 19 Jul 2022 18:57:07 +0200 Subject: [PATCH] fix(@desktop/wallet): Multinetwork QR code sometimes doesn't update when there is only 1 network left fixes #6496 --- ui/app/AppLayouts/Wallet/popups/ReceiveModal.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/app/AppLayouts/Wallet/popups/ReceiveModal.qml b/ui/app/AppLayouts/Wallet/popups/ReceiveModal.qml index 0a901c1228..785a635441 100644 --- a/ui/app/AppLayouts/Wallet/popups/ReceiveModal.qml +++ b/ui/app/AppLayouts/Wallet/popups/ReceiveModal.qml @@ -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