mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 13:16:44 +00:00
delegate to wallet model usb support
This commit is contained in:
parent
33ba472843
commit
e44d1393f5
2 changed files with 2 additions and 4 deletions
2
drongo
2
drongo
|
@ -1 +1 @@
|
||||||
Subproject commit 6b89a0c5ea7a63e1b410abe9963f20ce83763798
|
Subproject commit f8f50c0dd907fac674ea363443b96772b6a0b658
|
|
@ -108,9 +108,7 @@ 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.TREZOR_SAFE_5 ||
|
if(walletModel.hasUsb()) {
|
||||||
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.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