minor
This commit is contained in:
parent
d67318399b
commit
ab46f1110f
|
@ -82,7 +82,10 @@ def run_password_dialog(self, wallet, parent):
|
||||||
QMessageBox.warning(parent, _('Error'), _('Failed to update password'), _('OK'))
|
QMessageBox.warning(parent, _('Error'), _('Failed to update password'), _('OK'))
|
||||||
return
|
return
|
||||||
|
|
||||||
return new_password
|
if new_password:
|
||||||
|
QMessageBox.information(parent, _('Success'), _('Password was updated successfully'), _('OK'))
|
||||||
|
else:
|
||||||
|
QMessageBox.information(parent, _('Success'), _('This wallet is not encrypted'), _('OK'))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -101,11 +104,7 @@ class PasswordDialog(QDialog):
|
||||||
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
new_password = run_password_dialog(self, self.wallet, self.parent)
|
run_password_dialog(self, self.wallet, self.parent)
|
||||||
if new_password:
|
|
||||||
QMessageBox.information(self.parent, _('Success'), _('Password was updated successfully'), _('OK'))
|
|
||||||
else:
|
|
||||||
QMessageBox.information(self.parent, _('Success'), _('This wallet is not encrypted'), _('OK'))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue