mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 17:55:20 +00:00
ledger: ImportError fallback
This commit is contained in:
parent
da7e48f3a7
commit
83a422988e
1 changed files with 5 additions and 2 deletions
|
@ -11,8 +11,6 @@ from electrum_gui.qt.util import *
|
||||||
|
|
||||||
from btchip.btchipPersoWizard import StartBTChipPersoDialog
|
from btchip.btchipPersoWizard import StartBTChipPersoDialog
|
||||||
|
|
||||||
from .auth2fa import LedgerAuthDialog
|
|
||||||
|
|
||||||
class Plugin(LedgerPlugin, QtPluginBase):
|
class Plugin(LedgerPlugin, QtPluginBase):
|
||||||
icon_unpaired = ":icons/ledger_unpaired.png"
|
icon_unpaired = ":icons/ledger_unpaired.png"
|
||||||
icon_paired = ":icons/ledger.png"
|
icon_paired = ":icons/ledger.png"
|
||||||
|
@ -46,6 +44,11 @@ class Ledger_Handler(QtHandlerBase):
|
||||||
dialog.show()
|
dialog.show()
|
||||||
|
|
||||||
def auth_dialog(self, data):
|
def auth_dialog(self, data):
|
||||||
|
try:
|
||||||
|
from .auth2fa import LedgerAuthDialog
|
||||||
|
except ImportError as e:
|
||||||
|
self.message_dialog(e)
|
||||||
|
return
|
||||||
dialog = LedgerAuthDialog(self, data)
|
dialog = LedgerAuthDialog(self, data)
|
||||||
dialog.exec_()
|
dialog.exec_()
|
||||||
self.word = dialog.pin
|
self.word = dialog.pin
|
||||||
|
|
Loading…
Add table
Reference in a new issue