Qt: fix running GUI offline
This commit is contained in:
@@ -2260,7 +2260,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
|
|||||||
def update_lightning_icon(self):
|
def update_lightning_icon(self):
|
||||||
if self.lightning_button is None:
|
if self.lightning_button is None:
|
||||||
return
|
return
|
||||||
if self.network.lngossip is None:
|
if self.network is None or self.network.channel_db is None:
|
||||||
self.lightning_button.setVisible(False)
|
self.lightning_button.setVisible(False)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user