mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 11:39:31 +00:00
Merge pull request #3903
434ac21
WizardCreateDevice1: add Ledger Nano S Plus (selsta)
This commit is contained in:
commit
953cb8d302
3 changed files with 16 additions and 1 deletions
BIN
images/ledgerNanoSPlus.png
Normal file
BIN
images/ledgerNanoSPlus.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
1
qml.qrc
1
qml.qrc
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue