call save_seed only in main script
This commit is contained in:
4
electrum
4
electrum
@@ -137,7 +137,9 @@ if __name__ == '__main__':
|
||||
if a =='create':
|
||||
wallet.init_seed(None)
|
||||
gui.show_seed()
|
||||
if not gui.verify_seed():
|
||||
if gui.verify_seed():
|
||||
wallet.save_seed()
|
||||
else:
|
||||
exit()
|
||||
|
||||
else:
|
||||
|
||||
@@ -2307,7 +2307,6 @@ class ElectrumGui:
|
||||
QMessageBox.warning(None, _('Error'), 'incorrect seed', 'OK')
|
||||
return False
|
||||
else:
|
||||
self.wallet.save_seed()
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user