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 719292f818
commit a486d01640

View File

@@ -201,7 +201,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: