Wizard: display selected network (testnet/stagenet) on "Create a new wallet" header

This commit is contained in:
rating89us 2021-11-30 23:08:37 +01:00
parent a959919b8a
commit 9194522b56
3 changed files with 24 additions and 4 deletions

View file

@ -73,7 +73,12 @@ Rectangle {
spacing: 20
WizardHeader {
title: qsTr("Create a new wallet") + translationManager.emptyString
title: {
var nettype = persistentSettings.nettype;
return qsTr("Create a new wallet") + (nettype === 2 ? " (" + qsTr("stagenet") + ")"
: nettype === 1 ? " (" + qsTr("testnet") + ")"
: "") + translationManager.emptyString
}
subtitle: qsTr("Using a hardware device.") + translationManager.emptyString
}

View file

@ -60,7 +60,12 @@ Rectangle {
spacing: 20
WizardHeader {
title: qsTr("Create a new wallet") + translationManager.emptyString
title: {
var nettype = persistentSettings.nettype;
return qsTr("Create a new wallet") + (nettype === 2 ? " (" + qsTr("stagenet") + ")"
: nettype === 1 ? " (" + qsTr("testnet") + ")"
: "") + translationManager.emptyString
}
subtitle: qsTr("Creates a new wallet on this computer.") + translationManager.emptyString
}

View file

@ -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"