Merge pull request #3903

434ac21 WizardCreateDevice1: add Ledger Nano S Plus (selsta)
This commit is contained in:
luigi1111 2022-06-09 13:54:42 -05:00
commit 953cb8d302
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
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