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
}