URI: 
       tdon't open wizard window if no action was required - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 6acbe4226ec2f063992b3a0e2280a0256b2915a1
   DIR parent a3bced210d8b66fc52ecf6ddaae63daa4fae0f44
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Fri,  8 Jan 2016 13:44:59 +0100
       
       don't open wizard window if no action was required
       
       Diffstat:
         M lib/wizard.py                       |       6 +++++-
       
       1 file changed, 5 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/wizard.py b/lib/wizard.py
       t@@ -152,10 +152,12 @@ class WizardBase(PrintError):
                        return
                    task = lambda: self.show_restore(wallet, network, cr)
        
       +        need_sync = False
                while True:
                    action = wallet.get_action()
                    if not action:
                        break
       +            need_sync = True
                    self.run_wallet_action(wallet, action)
                    # Save the wallet after each action
                    wallet.storage.write()
       t@@ -165,7 +167,9 @@ class WizardBase(PrintError):
                else:
                    self.show_warning(_('You are offline'))
        
       -        self.create_addresses(wallet)
       +        if need_sync:
       +            self.create_addresses(wallet)
       +
                # start wallet threads
                if network:
                    wallet.start_threads(network)