Browse Source

disable 'show on trezor' menu for multisig

283
ThomasV 9 years ago
parent
commit
a2fa26eb46
  1. 6
      plugins/trezor/qt_generic.py

6
plugins/trezor/qt_generic.py

@ -12,7 +12,7 @@ from ..hw_wallet.qt import QtHandlerBase
from electrum.i18n import _ from electrum.i18n import _
from electrum.plugins import hook, DeviceMgr from electrum.plugins import hook, DeviceMgr
from electrum.util import PrintError, UserCancelled from electrum.util import PrintError, UserCancelled
from electrum.wallet import Wallet from electrum.wallet import Wallet, Standard_Wallet
PASSPHRASE_HELP_SHORT =_( PASSPHRASE_HELP_SHORT =_(
"Passphrases allow you to access new wallets, each " "Passphrases allow you to access new wallets, each "
@ -203,7 +203,9 @@ def qt_plugin_class(base_plugin_class):
@hook @hook
def receive_menu(self, menu, addrs, wallet): def receive_menu(self, menu, addrs, wallet):
for keystore in wallet.get_keystores(): if type(wallet) is not Standard_Wallet:
return
keystore = wallet.get_keystore()
if type(keystore) == self.keystore_class and len(addrs) == 1: if type(keystore) == self.keystore_class and len(addrs) == 1:
def show_address(): def show_address():
keystore.thread.add(partial(self.show_address, wallet, addrs[0])) keystore.thread.add(partial(self.show_address, wallet, addrs[0]))

Loading…
Cancel
Save