mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 13:16:44 +00:00
add trezor safe 5 support (hwi update still required)
This commit is contained in:
parent
d894343457
commit
b3f6cc88f0
3 changed files with 5 additions and 5 deletions
2
drongo
2
drongo
|
@ -1 +1 @@
|
||||||
Subproject commit d73d3439f67fe528479b759013529d7049c8cba2
|
Subproject commit f066b5b608c4cff8873c776ef9c89e9194ccc332
|
|
@ -27,8 +27,8 @@ public class UsbStatusButton extends MenuButton {
|
||||||
public void setDevices(List<Device> devices) {
|
public void setDevices(List<Device> devices) {
|
||||||
for(Device device : devices) {
|
for(Device device : devices) {
|
||||||
MenuItem deviceItem = new MenuItem(device.getModel().toDisplayString());
|
MenuItem deviceItem = new MenuItem(device.getModel().toDisplayString());
|
||||||
if(!device.isNeedsPinSent() && (device.getModel() == WalletModel.TREZOR_1 || device.getModel() == WalletModel.TREZOR_T ||
|
if(!device.isNeedsPinSent() && (device.getModel() == WalletModel.TREZOR_1 || device.getModel() == WalletModel.TREZOR_T || device.getModel() == WalletModel.TREZOR_SAFE_3 ||
|
||||||
device.getModel() == WalletModel.TREZOR_SAFE_3 || device.getModel() == WalletModel.KEEPKEY || device.getModel() == WalletModel.BITBOX_02)) {
|
device.getModel() == WalletModel.TREZOR_SAFE_5 || device.getModel() == WalletModel.KEEPKEY || device.getModel() == WalletModel.BITBOX_02)) {
|
||||||
deviceItem = new Menu(device.getModel().toDisplayString());
|
deviceItem = new Menu(device.getModel().toDisplayString());
|
||||||
MenuItem toggleItem = new MenuItem("Toggle Passphrase" + (!device.getModel().externalPassphraseEntry() ? "" : (device.isNeedsPassphraseSent() ? " Off" : " On")));
|
MenuItem toggleItem = new MenuItem("Toggle Passphrase" + (!device.getModel().externalPassphraseEntry() ? "" : (device.isNeedsPassphraseSent() ? " Off" : " On")));
|
||||||
toggleItem.setOnAction(event -> {
|
toggleItem.setOnAction(event -> {
|
||||||
|
|
|
@ -108,9 +108,9 @@ public class SpecterDesktop implements WalletImport, WalletExport {
|
||||||
WalletModel walletModel = device.getWalletModel();
|
WalletModel walletModel = device.getWalletModel();
|
||||||
if(walletModel != null) {
|
if(walletModel != null) {
|
||||||
keystore.setWalletModel(walletModel);
|
keystore.setWalletModel(walletModel);
|
||||||
if(walletModel == WalletModel.TREZOR_1 || walletModel == WalletModel.TREZOR_T || walletModel == WalletModel.TREZOR_SAFE_3 || walletModel == WalletModel.KEEPKEY ||
|
if(walletModel == WalletModel.TREZOR_1 || walletModel == WalletModel.TREZOR_T || walletModel == WalletModel.TREZOR_SAFE_3 || walletModel == WalletModel.TREZOR_SAFE_5 ||
|
||||||
walletModel == WalletModel.LEDGER_NANO_S || walletModel == WalletModel.LEDGER_NANO_X || walletModel == WalletModel.LEDGER_NANO_S_PLUS ||
|
walletModel == WalletModel.LEDGER_NANO_S || walletModel == WalletModel.LEDGER_NANO_X || walletModel == WalletModel.LEDGER_NANO_S_PLUS ||
|
||||||
walletModel == WalletModel.BITBOX_02 || walletModel == WalletModel.COLDCARD) {
|
walletModel == WalletModel.BITBOX_02 || walletModel == WalletModel.COLDCARD || walletModel == WalletModel.KEEPKEY) {
|
||||||
keystore.setSource(KeystoreSource.HW_USB);
|
keystore.setSource(KeystoreSource.HW_USB);
|
||||||
} else if(walletModel == WalletModel.BITCOIN_CORE) {
|
} else if(walletModel == WalletModel.BITCOIN_CORE) {
|
||||||
keystore.setSource(KeystoreSource.SW_WATCH);
|
keystore.setSource(KeystoreSource.SW_WATCH);
|
||||||
|
|
Loading…
Reference in a new issue