mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
Qt: add lightning button to status bar
This commit is contained in:
parent
0966edc637
commit
a201ed44df
1 changed files with 3 additions and 0 deletions
|
@ -2300,6 +2300,9 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
|
|||
sb.addPermanentWidget(StatusBarButton(read_QIcon("preferences.png"), _("Preferences"), self.settings_dialog ) )
|
||||
self.seed_button = StatusBarButton(read_QIcon("seed.png"), _("Seed"), self.show_seed_dialog )
|
||||
sb.addPermanentWidget(self.seed_button)
|
||||
if self.config.get('lightning'):
|
||||
self.lightning_button = StatusBarButton(read_QIcon("lightning.png"), _("Lightning Network"), self.gui_object.show_lightning_dialog)
|
||||
sb.addPermanentWidget(self.lightning_button)
|
||||
self.status_button = StatusBarButton(read_QIcon("status_disconnected.png"), _("Network"), lambda: self.gui_object.show_network_dialog(self))
|
||||
sb.addPermanentWidget(self.status_button)
|
||||
run_hook('create_status_bar', sb)
|
||||
|
|
Loading…
Add table
Reference in a new issue