Merge pull request #2198

725cf73 wizardhome: add change network label (mmbyday)
This commit is contained in:
luigi1111 2019-06-21 14:34:58 -05:00
commit d301a9ac6e
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -180,23 +180,34 @@ Rectangle {
visible: showAdvancedCheckbox.checked && appWindow.walletMode >= 2 visible: showAdvancedCheckbox.checked && appWindow.walletMode >= 2
columns: 4 columns: 4
columnSpacing: 20 columnSpacing: 20
Layout.fillWidth: true
MoneroComponents.StandardDropdown { ColumnLayout {
id: networkTypeDropdown Layout.topMargin: 4
dataModel: networkTypeModel
Layout.fillWidth: true
Layout.topMargin: 41
onChanged: { MoneroComponents.Label {
var item = dataModel.get(currentIndex).nettype.toLowerCase(); text: qsTr("Change Network:") + translationManager.emptyString
if(item === "mainnet") { fontSize: 14
persistentSettings.nettype = NetworkType.MAINNET }
} else if(item === "stagenet"){
persistentSettings.nettype = NetworkType.STAGENET MoneroComponents.StandardDropdown {
} else if(item === "testnet"){ id: networkTypeDropdown
persistentSettings.nettype = NetworkType.TESTNET 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()
} }
} }