URI: 
       tsynchronizer: fix refresh bug - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 96b699e5341201ffe078be9b45abf5748e0d68e7
   DIR parent 6f0dceb1522203a51cd4fb05c3bf85dfdcdc5932
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Wed, 19 Sep 2018 16:35:30 +0200
       
       synchronizer: fix refresh bug
       
       Diffstat:
         M electrum/address_synchronizer.py    |       2 ++
         M electrum/network.py                 |       3 ++-
         M electrum/synchronizer.py            |       1 +
       
       3 files changed, 5 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/electrum/address_synchronizer.py b/electrum/address_synchronizer.py
       t@@ -643,6 +643,8 @@ class AddressSynchronizer(PrintError):
            def set_up_to_date(self, up_to_date):
                with self.lock:
                    self.up_to_date = up_to_date
       +        if self.network:
       +            self.network.notify('status')
                if up_to_date:
                    self.save_transactions(write=True)
                    # if the verifier is also up to date, persist that too;
   DIR diff --git a/electrum/network.py b/electrum/network.py
       t@@ -308,7 +308,8 @@ class Network(PrintError):
                self.notify('status')
        
            def is_connected(self):
       -        return self.interface is not None and self.interface.ready.done()
       +        interface = self.interface
       +        return interface is not None and interface.ready.done()
        
            def is_connecting(self):
                return self.connection_status == 'connecting'
   DIR diff --git a/electrum/synchronizer.py b/electrum/synchronizer.py
       t@@ -160,6 +160,7 @@ class Synchronizer(PrintError):
                return s
        
            async def main(self):
       +        self.wallet.set_up_to_date(False)
                # request missing txns, if any
                async with TaskGroup() as group:
                    for history in self.wallet.history.values():