mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-26 23:13:25 +00:00
fix
This commit is contained in:
parent
893e54b7e3
commit
af2ed46331
1 changed files with 5 additions and 3 deletions
|
@ -535,12 +535,13 @@ class ElectrumWindow(QMainWindow):
|
||||||
conf_pw = QLineEdit()
|
conf_pw = QLineEdit()
|
||||||
conf_pw.setEchoMode(2)
|
conf_pw.setEchoMode(2)
|
||||||
|
|
||||||
|
vbox = QVBoxLayout()
|
||||||
|
msg = 'Your wallet is encrypted. Use this dialog to change your password.\nTo disable wallet encryption, enter an empty new password.' if self.wallet.use_encryption else 'Your wallet keys are not encrypted'
|
||||||
|
vbox.addWidget(QLabel(msg))
|
||||||
|
|
||||||
grid = QGridLayout()
|
grid = QGridLayout()
|
||||||
grid.setSpacing(8)
|
grid.setSpacing(8)
|
||||||
|
|
||||||
msg = 'Your wallet is encrypted. Use this dialog to change your password.\nTo disable wallet encryption, enter an empty new password.' if self.wallet.use_encryption else 'Your wallet keys are not encrypted'
|
|
||||||
grid.addWidget(QLabel(msg), 0, 0, 1, 2)
|
|
||||||
|
|
||||||
if self.wallet.use_encryption:
|
if self.wallet.use_encryption:
|
||||||
grid.addWidget(QLabel('Password'), 1, 0)
|
grid.addWidget(QLabel('Password'), 1, 0)
|
||||||
grid.addWidget(pw, 1, 1)
|
grid.addWidget(pw, 1, 1)
|
||||||
|
@ -550,6 +551,7 @@ class ElectrumWindow(QMainWindow):
|
||||||
|
|
||||||
grid.addWidget(QLabel('Confirm Password'), 3, 0)
|
grid.addWidget(QLabel('Confirm Password'), 3, 0)
|
||||||
grid.addWidget(conf_pw, 3, 1)
|
grid.addWidget(conf_pw, 3, 1)
|
||||||
|
vbox.addLayout(grid)
|
||||||
|
|
||||||
vbox.addLayout(self.ok_cancel_buttons(d))
|
vbox.addLayout(self.ok_cancel_buttons(d))
|
||||||
d.setLayout(vbox)
|
d.setLayout(vbox)
|
||||||
|
|
Loading…
Add table
Reference in a new issue