1
0

trezor plugin

This commit is contained in:
m0mchil
2014-07-10 22:44:28 +03:00
parent bd3bfb5e53
commit a336379aa5
4 changed files with 327 additions and 5 deletions

View File

@@ -1058,7 +1058,7 @@ class ElectrumWindow(QMainWindow):
return
# call hook to see if plugin needs gui interaction
run_hook('send_tx', tx)
run_hook('send_tx', tx, self.wallet)
# sign the tx
def sign_thread():

View File

@@ -23,7 +23,7 @@ from util import *
def make_password_dialog(self, wallet, msg):
def make_password_dialog(self, wallet, msg, new_pass=True):
self.pw = QLineEdit()
self.pw.setEchoMode(2)
@@ -58,8 +58,8 @@ def make_password_dialog(self, wallet, msg):
if wallet and wallet.use_encryption:
grid.addWidget(QLabel(_('Password')), 0, 0)
grid.addWidget(self.pw, 0, 1)
grid.addWidget(QLabel(_('New Password')), 1, 0)
grid.addWidget(QLabel(_('New Password' if new_pass else 'Password')), 1, 0)
grid.addWidget(self.new_pw, 1, 1)
grid.addWidget(QLabel(_('Confirm Password')), 2, 0)