trezor plugin
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user