fix #4152. and clean up imports
This commit is contained in:
@@ -1,15 +1,13 @@
|
|||||||
import threading
|
#from btchip.btchipPersoWizard import StartBTChipPersoDialog
|
||||||
|
|
||||||
from PyQt5.Qt import QInputDialog, QLineEdit, QVBoxLayout, QLabel
|
|
||||||
|
|
||||||
from electrum.i18n import _
|
from electrum.i18n import _
|
||||||
from electrum.plugins import hook
|
from electrum.plugins import hook
|
||||||
from electrum.wallet import Standard_Wallet
|
from electrum.wallet import Standard_Wallet
|
||||||
from .ledger import LedgerPlugin
|
|
||||||
from ..hw_wallet.qt import QtHandlerBase, QtPluginBase
|
|
||||||
from electrum_gui.qt.util import *
|
from electrum_gui.qt.util import *
|
||||||
|
|
||||||
#from btchip.btchipPersoWizard import StartBTChipPersoDialog
|
from .ledger import LedgerPlugin
|
||||||
|
from ..hw_wallet.qt import QtHandlerBase, QtPluginBase
|
||||||
|
|
||||||
|
|
||||||
class Plugin(LedgerPlugin, QtPluginBase):
|
class Plugin(LedgerPlugin, QtPluginBase):
|
||||||
icon_unpaired = ":icons/ledger_unpaired.png"
|
icon_unpaired = ":icons/ledger_unpaired.png"
|
||||||
@@ -77,11 +75,7 @@ class Ledger_Handler(QtHandlerBase):
|
|||||||
return
|
return
|
||||||
|
|
||||||
def setup_dialog(self):
|
def setup_dialog(self):
|
||||||
|
self.show_error(_('Initialization of Ledger HW devices is currently disabled.'))
|
||||||
|
return
|
||||||
dialog = StartBTChipPersoDialog()
|
dialog = StartBTChipPersoDialog()
|
||||||
dialog.exec_()
|
dialog.exec_()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user