mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
Merge pull request #2198
725cf73
wizardhome: add change network label (mmbyday)
This commit is contained in:
commit
d301a9ac6e
1 changed files with 25 additions and 14 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue