mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
don't open wizard window if no action was required
This commit is contained in:
parent
a3bced210d
commit
6acbe4226e
1 changed files with 5 additions and 1 deletions
|
@ -152,10 +152,12 @@ class WizardBase(PrintError):
|
||||||
return
|
return
|
||||||
task = lambda: self.show_restore(wallet, network, cr)
|
task = lambda: self.show_restore(wallet, network, cr)
|
||||||
|
|
||||||
|
need_sync = False
|
||||||
while True:
|
while True:
|
||||||
action = wallet.get_action()
|
action = wallet.get_action()
|
||||||
if not action:
|
if not action:
|
||||||
break
|
break
|
||||||
|
need_sync = True
|
||||||
self.run_wallet_action(wallet, action)
|
self.run_wallet_action(wallet, action)
|
||||||
# Save the wallet after each action
|
# Save the wallet after each action
|
||||||
wallet.storage.write()
|
wallet.storage.write()
|
||||||
|
@ -165,7 +167,9 @@ class WizardBase(PrintError):
|
||||||
else:
|
else:
|
||||||
self.show_warning(_('You are offline'))
|
self.show_warning(_('You are offline'))
|
||||||
|
|
||||||
self.create_addresses(wallet)
|
if need_sync:
|
||||||
|
self.create_addresses(wallet)
|
||||||
|
|
||||||
# start wallet threads
|
# start wallet threads
|
||||||
if network:
|
if network:
|
||||||
wallet.start_threads(network)
|
wallet.start_threads(network)
|
||||||
|
|
Loading…
Add table
Reference in a new issue