Browse Source

(trivial) qt: disable 'swap' button if lightning disabled

bip39-recovery
SomberNight 5 years ago
parent
commit
12e2beadd9
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 1
      electrum/gui/qt/channels_list.py

1
electrum/gui/qt/channels_list.py

@ -279,6 +279,7 @@ class ChannelsList(MyTreeView):
h.addWidget(self.can_send_label)
h.addStretch()
self.swap_button = EnterButton(_('Swap'), self.swap_dialog)
self.swap_button.setEnabled(self.parent.wallet.has_lightning())
self.new_channel_button = EnterButton(_('Open Channel'), self.new_channel_dialog)
self.new_channel_button.setEnabled(self.parent.wallet.has_lightning())
h.addWidget(self.new_channel_button)

Loading…
Cancel
Save