call save_seed only in main script
This commit is contained in:
parent
f32f85fb78
commit
d09d4e4055
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue