Merge branch 'trezor_plugin' of github.com:m0mchil/electrum into m0mchil-trezor_plugin
This commit is contained in:
@@ -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