aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardOptions.qml
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-07-17 16:56:03 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-07-17 16:56:03 -0500
commit9331f2cff173eb92f3feee6776b6faf4ef1b2b45 (patch)
treeef2d7f39d13736eb7e6074b57e1821d08e104a5d /wizard/WizardOptions.qml
parent2633419c8e428edd414ca3331544a1335baa4d9e (diff)
parentf7bbdd3044a4a780259b18e649347c3f7117e72b (diff)
downloadmonzero-gui-9331f2cff173eb92f3feee6776b6faf4ef1b2b45.tar.gz
monzero-gui-9331f2cff173eb92f3feee6776b6faf4ef1b2b45.tar.xz
monzero-gui-9331f2cff173eb92f3feee6776b6faf4ef1b2b45.zip
Merge pull request #1452
f7bbdd3 add explicit mainnet button and move nettypes to advanced options (cryptochangements34)
Diffstat (limited to 'wizard/WizardOptions.qml')
-rw-r--r--wizard/WizardOptions.qml36
1 files changed, 36 insertions, 0 deletions
diff --git a/wizard/WizardOptions.qml b/wizard/WizardOptions.qml
index b19a9559..65a32582 100644
--- a/wizard/WizardOptions.qml
+++ b/wizard/WizardOptions.qml
@@ -237,9 +237,41 @@ ColumnLayout {
Layout.fillWidth: true
spacing: 38 * scaleRatio
+ RowLayout {
+ CheckBox2 {
+ id: showAdvancedCheckbox
+ darkDropIndicator: true
+ text: qsTr("Advanced options") + translationManager.emptyString
+ fontColor: "#4A4646"
+ }
+ }
+
+ Rectangle {
+ width: 100 * scaleRatio
+ RadioButton {
+ visible: showAdvancedCheckbox.checked
+ enabled: !this.checked
+ id: mainNet
+ text: qsTr("Mainnet") + translationManager.emptyString
+ checkedColor: Qt.rgba(0, 0, 0, 0.75)
+ borderColor: Qt.rgba(0, 0, 0, 0.45)
+ fontColor: "#4A4646"
+ fontSize: 16 * scaleRatio
+ checked: appWindow.persistentSettings.nettype == NetworkType.MAINNET;
+ onClicked: {
+ persistentSettings.nettype = NetworkType.MAINNET
+ testNet.checked = false;
+ stageNet.checked = false;
+ console.log("Network type set to MainNet")
+ }
+ }
+ }
+
Rectangle {
width: 100 * scaleRatio
RadioButton {
+ visible: showAdvancedCheckbox.checked
+ enabled: !this.checked
id: testNet
text: qsTr("Testnet") + translationManager.emptyString
checkedColor: Qt.rgba(0, 0, 0, 0.75)
@@ -249,6 +281,7 @@ ColumnLayout {
checked: appWindow.persistentSettings.nettype == NetworkType.TESTNET;
onClicked: {
persistentSettings.nettype = testNet.checked ? NetworkType.TESTNET : NetworkType.MAINNET
+ mainNet.checked = false;
stageNet.checked = false;
console.log("Network type set to ", persistentSettings.nettype == NetworkType.TESTNET ? "Testnet" : "Mainnet")
}
@@ -258,6 +291,8 @@ ColumnLayout {
Rectangle {
width: 100 * scaleRatio
RadioButton {
+ visible: showAdvancedCheckbox.checked
+ enabled: !this.checked
id: stageNet
text: qsTr("Stagenet") + translationManager.emptyString
checkedColor: Qt.rgba(0, 0, 0, 0.75)
@@ -267,6 +302,7 @@ ColumnLayout {
checked: appWindow.persistentSettings.nettype == NetworkType.STAGENET;
onClicked: {
persistentSettings.nettype = stageNet.checked ? NetworkType.STAGENET : NetworkType.MAINNET
+ mainNet.checked = false;
testNet.checked = false;
console.log("Network type set to ", persistentSettings.nettype == NetworkType.STAGENET ? "Stagenet" : "Mainnet")
}