WizardCreateDevice1: add Ledger Nano S Plus

This commit is contained in:
selsta 2022-04-30 09:05:40 +02:00
parent b31cc36de2
commit 434ac2182a
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
3 changed files with 16 additions and 1 deletions

BIN
images/ledgerNanoSPlus.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -264,6 +264,7 @@
<file>components/SuccessfulTxDialog.qml</file>
<file>components/TxConfirmationDialog.qml</file>
<file>images/ledgerNanoS.png</file>
<file>images/ledgerNanoSPlus.png</file>
<file>images/ledgerNanoX.png</file>
<file>images/trezor.png</file>
<file>images/trezor@2x.png</file>

View File

@ -52,6 +52,7 @@ Rectangle {
id: deviceNameModel
ListElement { column1: qsTr("Choose your hardware wallet"); column2: "";}
ListElement { column1: "Ledger Nano S"; column2: "Ledger";}
ListElement { column1: "Ledger Nano S Plus"; column2: "Ledger";}
ListElement { column1: "Ledger Nano X"; column2: "Ledger";}
ListElement { column1: "Trezor Model T"; column2: "Trezor";}
}
@ -159,7 +160,20 @@ Rectangle {
Image {
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
source: hardwareWalletType == "Trezor" ? "qrc:///images/trezor.png" : hardwareWalletType == "Ledger" ? (ledgerType == "Ledger Nano S" ? "qrc:///images/ledgerNanoS.png" : "qrc:///images/ledgerNanoX.png") : ""
source: {
if (hardwareWalletType == "Trezor") {
return "qrc:///images/trezor.png";
} else if (hardwareWalletType == "Ledger") {
if (ledgerType == "Ledger Nano S") {
return "qrc:///images/ledgerNanoS.png";
} else if (ledgerType == "Ledger Nano S Plus") {
return "qrc:///images/ledgerNanoSPlus.png";
} else if (ledgerType == "Ledger Nano X") {
return "qrc:///images/ledgerNanoX.png";
}
}
return "";
}
z: parent.z + 1
width: parent.width
height: 165