1
0

qt: tray icon: don't show "network" if --offline

This commit is contained in:
SomberNight
2024-10-11 18:48:49 +00:00
parent 8d79726ec5
commit 395618723b

View File

@@ -211,7 +211,8 @@ class ElectrumGui(BaseElectrumGui, Logger):
m = self.tray.contextMenu()
m.clear()
network = self.daemon.network
m.addAction(_("Network"), self.show_network_dialog)
if network:
m.addAction(_("Network"), self.show_network_dialog)
if network and network.lngossip:
m.addAction(_("Lightning Network"), self.show_lightning_dialog)
if network and network.local_watchtower: