mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
change_password_dialog: remove redundant check
This is guaranteed False by wallet.can_change_password()
This commit is contained in:
parent
5c2c7b1557
commit
bb3de0eb63
1 changed files with 0 additions and 4 deletions
|
@ -1875,10 +1875,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||||
def change_password_dialog(self):
|
def change_password_dialog(self):
|
||||||
from password_dialog import PasswordDialog, PW_CHANGE
|
from password_dialog import PasswordDialog, PW_CHANGE
|
||||||
|
|
||||||
if self.wallet and self.wallet.is_watching_only():
|
|
||||||
self.show_error(_('This is a watching-only wallet'))
|
|
||||||
return
|
|
||||||
|
|
||||||
msg = (_('Your wallet is encrypted. Use this dialog to change your '
|
msg = (_('Your wallet is encrypted. Use this dialog to change your '
|
||||||
'password. To disable wallet encryption, enter an empty new '
|
'password. To disable wallet encryption, enter an empty new '
|
||||||
'password.') if self.wallet.use_encryption
|
'password.') if self.wallet.use_encryption
|
||||||
|
|
Loading…
Add table
Reference in a new issue