fix: remove gap limit stuff from settings dialog
This commit is contained in:
parent
eafdb42475
commit
71fae15352
|
@ -2107,20 +2107,6 @@ class ElectrumWindow(QMainWindow):
|
|||
self.update_history_tab()
|
||||
self.update_status()
|
||||
|
||||
try:
|
||||
n = int(gap_e.text())
|
||||
except:
|
||||
QMessageBox.warning(self, _('Error'), _('Invalid value'), _('OK'))
|
||||
return
|
||||
|
||||
if self.wallet.gap_limit != n:
|
||||
r = self.wallet.change_gap_limit(n)
|
||||
if r:
|
||||
self.update_receive_tab()
|
||||
self.config.set_key('gap_limit', self.wallet.gap_limit, True)
|
||||
else:
|
||||
QMessageBox.warning(self, _('Error'), _('Invalid value'), _('OK'))
|
||||
|
||||
need_restart = False
|
||||
|
||||
lang_request = languages.keys()[lang_combo.currentIndex()]
|
||||
|
|
|
@ -103,9 +103,9 @@ class PasswordDialog(QDialog):
|
|||
def run(self):
|
||||
new_password = run_password_dialog(self, self.wallet, self.parent)
|
||||
if new_password:
|
||||
QMessageBox.information(parent, _('Success'), _('Password was updated successfully'), _('OK'))
|
||||
QMessageBox.information(self.parent, _('Success'), _('Password was updated successfully'), _('OK'))
|
||||
else:
|
||||
QMessageBox.information(parent, _('Success'), _('This wallet is not encrypted'), _('OK'))
|
||||
QMessageBox.information(self.parent, _('Success'), _('This wallet is not encrypted'), _('OK'))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue