URI: 
       tfollow-up: fix qt lightning dialog if gossip is not started - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 7110fde25d1f6c4cc6420a226f504dcc1a32cbca
   DIR parent f155f3aff5615cb075e7ce8c8f9beba009b1aacd
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Thu, 22 Oct 2020 19:20:22 +0200
       
       follow-up: fix qt lightning dialog if gossip is not started
       
       Diffstat:
         M electrum/gui/qt/lightning_dialog.py |       7 +++++--
       
       1 file changed, 5 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/gui/qt/lightning_dialog.py b/electrum/gui/qt/lightning_dialog.py
       t@@ -63,8 +63,11 @@ class LightningDialog(QDialog):
                util.register_callback(self.set_num_peers, ['gossip_peers'])
                util.register_callback(self.set_unknown_channels, ['unknown_channels'])
                self.network.channel_db.update_counts() # trigger callback
       -        self.set_num_peers('', self.network.lngossip.num_peers())
       -        self.set_unknown_channels('', len(self.network.lngossip.unknown_ids))
       +        if self.network.lngossip:
       +            self.set_num_peers('', self.network.lngossip.num_peers())
       +            self.set_unknown_channels('', len(self.network.lngossip.unknown_ids))
       +        else:
       +            self.num_peers.setText(_('Lightning gossip not active.'))
        
            def on_channel_db(self, event, num_nodes, num_channels, num_policies):
                self.num_nodes.setText(_('{} nodes').format(num_nodes))