diff --git a/images/ledgerNanoSPlus.png b/images/ledgerNanoSPlus.png new file mode 100644 index 00000000..9e1dc61b Binary files /dev/null and b/images/ledgerNanoSPlus.png differ diff --git a/qml.qrc b/qml.qrc index 578729ec..ea698a4e 100644 --- a/qml.qrc +++ b/qml.qrc @@ -264,6 +264,7 @@ components/SuccessfulTxDialog.qml components/TxConfirmationDialog.qml images/ledgerNanoS.png + images/ledgerNanoSPlus.png images/ledgerNanoX.png images/trezor.png images/trezor@2x.png diff --git a/wizard/WizardCreateDevice1.qml b/wizard/WizardCreateDevice1.qml index 9c12c500..037c5aee 100644 --- a/wizard/WizardCreateDevice1.qml +++ b/wizard/WizardCreateDevice1.qml @@ -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