call wallet.wait_until_synchronized before commands
This commit is contained in:
@@ -953,7 +953,7 @@ class ElectrumGui:
|
||||
droid.dialogShow()
|
||||
wallet.start_threads(network)
|
||||
if action == 'restore':
|
||||
wallet.restore(lambda x: None)
|
||||
wallet.wait_until_synchronized()
|
||||
else:
|
||||
wallet.synchronize()
|
||||
droid.dialogDismiss()
|
||||
|
||||
@@ -1357,8 +1357,8 @@ class ElectrumGui():
|
||||
dialog.show()
|
||||
|
||||
def recover_thread( wallet, dialog ):
|
||||
wallet.restore(lambda x:x)
|
||||
GObject.idle_add( dialog.destroy )
|
||||
wallet.wait_until_synchronized()
|
||||
GObject.idle_add(dialog.destroy)
|
||||
|
||||
thread.start_new_thread( recover_thread, ( wallet, dialog ) )
|
||||
r = dialog.run()
|
||||
|
||||
@@ -549,7 +549,7 @@ class InstallWizard(QDialog):
|
||||
wallet.start_threads(self.network)
|
||||
|
||||
if action == 'restore':
|
||||
self.waiting_dialog(lambda: wallet.restore(self.waiting_label.setText))
|
||||
self.waiting_dialog(lambda: wallet.wait_until_synchronized(self.waiting_label.setText))
|
||||
if self.network:
|
||||
msg = _("Recovery successful") if wallet.is_found() else _("No transactions found for this seed")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user