mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
Wizard: display selected network (testnet/stagenet) on "Create a new wallet" header
This commit is contained in:
parent
a959919b8a
commit
9194522b56
3 changed files with 24 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue