From 725cf737bc7de1d216baa146645808c91f4548eb Mon Sep 17 00:00:00 2001 From: mmbyday Date: Wed, 5 Jun 2019 10:25:06 -0700 Subject: [PATCH] wizardhome: add change network label --- wizard/WizardHome.qml | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/wizard/WizardHome.qml b/wizard/WizardHome.qml index 27a9faf2..2a38f3f7 100644 --- a/wizard/WizardHome.qml +++ b/wizard/WizardHome.qml @@ -180,23 +180,34 @@ Rectangle { visible: showAdvancedCheckbox.checked && appWindow.walletMode >= 2 columns: 4 columnSpacing: 20 + Layout.fillWidth: true - MoneroComponents.StandardDropdown { - id: networkTypeDropdown - dataModel: networkTypeModel - Layout.fillWidth: true - Layout.topMargin: 41 + ColumnLayout { + Layout.topMargin: 4 - onChanged: { - var item = dataModel.get(currentIndex).nettype.toLowerCase(); - if(item === "mainnet") { - persistentSettings.nettype = NetworkType.MAINNET - } else if(item === "stagenet"){ - persistentSettings.nettype = NetworkType.STAGENET - } else if(item === "testnet"){ - persistentSettings.nettype = NetworkType.TESTNET + MoneroComponents.Label { + text: qsTr("Change Network:") + translationManager.emptyString + fontSize: 14 + } + + MoneroComponents.StandardDropdown { + id: networkTypeDropdown + dataModel: networkTypeModel + Layout.fillWidth: true + Layout.maximumWidth: 180 + Layout.topMargin: 5 + + onChanged: { + var item = dataModel.get(currentIndex).nettype.toLowerCase(); + if(item === "mainnet") { + persistentSettings.nettype = NetworkType.MAINNET + } else if(item === "stagenet"){ + persistentSettings.nettype = NetworkType.STAGENET + } else if(item === "testnet"){ + persistentSettings.nettype = NetworkType.TESTNET + } + appWindow.disconnectRemoteNode() } - appWindow.disconnectRemoteNode() } }