diff options
Diffstat (limited to 'wizard/WizardOptions.qml')
| -rw-r--r-- | wizard/WizardOptions.qml | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/wizard/WizardOptions.qml b/wizard/WizardOptions.qml index fb6d83f3..7a9ffa62 100644 --- a/wizard/WizardOptions.qml +++ b/wizard/WizardOptions.qml @@ -245,11 +245,31 @@ ColumnLayout { CheckBox { id: testNet text: qsTr("Testnet") + translationManager.emptyString + background: "#FFFFFF" + fontColor: "#4A4646" + fontSize: 16 * scaleRatio checkedIcon: "../images/checkedVioletIcon.png" + uncheckedIcon: "../images/uncheckedIcon.png" + checked: appWindow.persistentSettings.nettype === NetworkType.TESTNET; + onClicked: { + persistentSettings.nettype = testNet.checked ? NetworkType.TESTNET : NetworkType.MAINNET + stageNet.checked = false; + console.log("Network type set to ", persistentSettings.nettype === NetworkType.TESTNET ? "Testnet" : "Mainnet") + } + } + } + + Rectangle { + width: 100 * scaleRatio + CheckBox { + id: stageNet + text: qsTr("Stagenet") + translationManager.emptyString background: "#FFFFFF" fontColor: "#4A4646" fontSize: 16 * scaleRatio - checked: appWindow.persistentSettings.testnet; + checkedIcon: "../images/checkedVioletIcon.png" + uncheckedIcon: "../images/uncheckedIcon.png" + checked: appWindow.persistentSettings.nettype === NetworkType.STAGENET; onClicked: { persistentSettings.nettype = stageNet.checked ? NetworkType.STAGENET : NetworkType.MAINNET testNet.checked = false; |
