mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
wizard: add Trezor Safe 3 to hardware wallets
This commit is contained in:
parent
e9cd4588ae
commit
c692fd1605
5 changed files with 10 additions and 3 deletions
BIN
images/trezor3.png
Normal file
BIN
images/trezor3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 301 KiB After Width: | Height: | Size: 301 KiB |
5
qml.qrc
5
qml.qrc
|
@ -282,8 +282,9 @@
|
|||
<file>images/ledgerNanoSPlus.png</file>
|
||||
<file>images/ledgerNanoX.png</file>
|
||||
<file>images/ledgerStax.png</file>
|
||||
<file>images/trezor.png</file>
|
||||
<file>images/trezor@2x.png</file>
|
||||
<file>images/trezor3.png</file>
|
||||
<file>images/trezorT.png</file>
|
||||
<file>images/trezorT@2x.png</file>
|
||||
<file>qtquickcontrols2.conf</file>
|
||||
<file>images/write-down.png</file>
|
||||
<file>images/write-down-white.png</file>
|
||||
|
|
|
@ -46,6 +46,7 @@ Rectangle {
|
|||
|
||||
property var deviceName: deviceNameModel.get(deviceNameDropdown.currentIndex).column2
|
||||
property var ledgerType: deviceName == "Ledger" ? deviceNameModel.get(deviceNameDropdown.currentIndex).column1 : null
|
||||
property var trezorType: deviceName == "Trezor" ? deviceNameModel.get(deviceNameDropdown.currentIndex).column1 : null
|
||||
property var hardwareWalletType: wizardCreateDevice1.deviceName;
|
||||
|
||||
ListModel {
|
||||
|
@ -56,6 +57,7 @@ Rectangle {
|
|||
ListElement { column1: "Ledger Nano X"; column2: "Ledger";}
|
||||
ListElement { column1: "Ledger Stax"; column2: "Ledger";}
|
||||
ListElement { column1: "Trezor Model T"; column2: "Trezor";}
|
||||
ListElement { column1: "Trezor Safe 3"; column2: "Trezor";}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
|
@ -163,7 +165,11 @@ Rectangle {
|
|||
Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
|
||||
source: {
|
||||
if (hardwareWalletType == "Trezor") {
|
||||
return "qrc:///images/trezor.png";
|
||||
if (trezorType == "Trezor Model T") {
|
||||
return "qrc:///images/trezorT.png";
|
||||
} else if (trezorType == "Trezor Safe 3") {
|
||||
return "qrc:///images/trezor3.png";
|
||||
}
|
||||
} else if (hardwareWalletType == "Ledger") {
|
||||
if (ledgerType == "Ledger Nano S") {
|
||||
return "qrc:///images/ledgerNanoS.png";
|
||||
|
|
Loading…
Reference in a new issue