qt: tray icon: don't show "network" if --offline
This commit is contained in:
@@ -211,7 +211,8 @@ class ElectrumGui(BaseElectrumGui, Logger):
|
|||||||
m = self.tray.contextMenu()
|
m = self.tray.contextMenu()
|
||||||
m.clear()
|
m.clear()
|
||||||
network = self.daemon.network
|
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:
|
if network and network.lngossip:
|
||||||
m.addAction(_("Lightning Network"), self.show_lightning_dialog)
|
m.addAction(_("Lightning Network"), self.show_lightning_dialog)
|
||||||
if network and network.local_watchtower:
|
if network and network.local_watchtower:
|
||||||
|
|||||||
Reference in New Issue
Block a user