From d752117ed386b2f8b953e426b471390974c776cc Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Thu, 13 Jan 2022 16:53:36 +0100 Subject: [PATCH] WizardHome: restore binding of networkTypeDropdown.currentIndex when selecting an item; display networkTypeDropdown if stagenet or testnet is selected --- wizard/WizardHome.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wizard/WizardHome.qml b/wizard/WizardHome.qml index 540216e8..1ee725d4 100644 --- a/wizard/WizardHome.qml +++ b/wizard/WizardHome.qml @@ -202,6 +202,7 @@ Rectangle { persistentSettings.nettype = NetworkType.TESTNET } appWindow.disconnectRemoteNode() + networkTypeDropdown.currentIndex = Qt.binding(function() { return persistentSettings.nettype }); } } @@ -241,5 +242,8 @@ Rectangle { function onPageCompleted(){ wizardController.walletOptionsIsRecoveringFromDevice = false; + if (networkTypeDropdown.currentIndex != 0) { + showAdvancedCheckbox.checked = true; + } } }