aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardHome.qml
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2021-11-30 23:08:37 +0100
committerrating89us <45968869+rating89us@users.noreply.github.com>2022-01-13 20:56:00 +0100
commit9194522b56b85c7a347cd87fd9d475d8d6f53518 (patch)
treefc9cd90a877ea017414580203fe4bb5b9405a1d5 /wizard/WizardHome.qml
parenta959919b8ad798d1384f83c5bf3ed7a2d16dc8aa (diff)
downloadmonzero-gui-9194522b56b85c7a347cd87fd9d475d8d6f53518.tar.gz
monzero-gui-9194522b56b85c7a347cd87fd9d475d8d6f53518.tar.xz
monzero-gui-9194522b56b85c7a347cd87fd9d475d8d6f53518.zip
Wizard: display selected network (testnet/stagenet) on "Create a new wallet" header
Diffstat (limited to 'wizard/WizardHome.qml')
-rw-r--r--wizard/WizardHome.qml14
1 files changed, 12 insertions, 2 deletions
diff --git a/wizard/WizardHome.qml b/wizard/WizardHome.qml
index 540216e8..ba0a0f11 100644
--- a/wizard/WizardHome.qml
+++ b/wizard/WizardHome.qml
@@ -73,7 +73,12 @@ Rectangle {
}
WizardMenuItem {
- headerText: qsTr("Create a new wallet") + translationManager.emptyString
+ headerText: {
+ var nettype = persistentSettings.nettype;
+ return qsTr("Create a new wallet") + (nettype === 2 ? " (" + qsTr("stagenet") + ")"
+ : nettype === 1 ? " (" + qsTr("testnet") + ")"
+ : "") + translationManager.emptyString
+ }
bodyText: qsTr("Choose this option if this is your first time using Monero.") + translationManager.emptyString
imageIcon: "qrc:///images/create-wallet.png"
@@ -94,7 +99,12 @@ Rectangle {
}
WizardMenuItem {
- headerText: qsTr("Create a new wallet from hardware") + translationManager.emptyString
+ headerText: {
+ var nettype = persistentSettings.nettype;
+ return qsTr("Create a new wallet from hardware") + (nettype === 2 ? " (" + qsTr("stagenet") + ")"
+ : nettype === 1 ? " (" + qsTr("testnet") + ")"
+ : "") + translationManager.emptyString
+ }
bodyText: qsTr("Connect your hardware wallet to create a new Monero wallet.") + translationManager.emptyString
imageIcon: "qrc:///images/restore-wallet-from-hardware.png"