mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
WizardCreateDevice1: add Ledger Nano S Plus
This commit is contained in:
parent
b31cc36de2
commit
434ac2182a
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/SuccessfulTxDialog.qml</file>
|
||||||
<file>components/TxConfirmationDialog.qml</file>
|
<file>components/TxConfirmationDialog.qml</file>
|
||||||
<file>images/ledgerNanoS.png</file>
|
<file>images/ledgerNanoS.png</file>
|
||||||
|
<file>images/ledgerNanoSPlus.png</file>
|
||||||
<file>images/ledgerNanoX.png</file>
|
<file>images/ledgerNanoX.png</file>
|
||||||
<file>images/trezor.png</file>
|
<file>images/trezor.png</file>
|
||||||
<file>images/trezor@2x.png</file>
|
<file>images/trezor@2x.png</file>
|
||||||
|
|
|
@ -52,6 +52,7 @@ Rectangle {
|
||||||
id: deviceNameModel
|
id: deviceNameModel
|
||||||
ListElement { column1: qsTr("Choose your hardware wallet"); column2: "";}
|
ListElement { column1: qsTr("Choose your hardware wallet"); column2: "";}
|
||||||
ListElement { column1: "Ledger Nano S"; column2: "Ledger";}
|
ListElement { column1: "Ledger Nano S"; column2: "Ledger";}
|
||||||
|
ListElement { column1: "Ledger Nano S Plus"; column2: "Ledger";}
|
||||||
ListElement { column1: "Ledger Nano X"; column2: "Ledger";}
|
ListElement { column1: "Ledger Nano X"; column2: "Ledger";}
|
||||||
ListElement { column1: "Trezor Model T"; column2: "Trezor";}
|
ListElement { column1: "Trezor Model T"; column2: "Trezor";}
|
||||||
}
|
}
|
||||||
|
@ -159,7 +160,20 @@ Rectangle {
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
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
|
z: parent.z + 1
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 165
|
height: 165
|
||||||
|
|
Loading…
Reference in a new issue