From 71bc9af5119215262dac5f6add5d8fbe22c8d867 Mon Sep 17 00:00:00 2001 From: f321x Date: Mon, 15 Dec 2025 14:18:57 +0100 Subject: [PATCH] qt: channels_list: add tooltip to New Channel btn Adds tooltips to the "New Channel" button so users understand why it is disabled and what it does when it is enabled. --- electrum/gui/qt/channels_list.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py index 70514bdbf..c62d49c5a 100644 --- a/electrum/gui/qt/channels_list.py +++ b/electrum/gui/qt/channels_list.py @@ -368,7 +368,11 @@ class ChannelsList(MyTreeView): # and maybe add item "main_window.init_lightning_dialog()" when applicable menu.setEnabled(self.wallet.has_lightning()) self.new_channel_button = EnterButton(_('New Channel'), self.main_window.new_channel_dialog) - self.new_channel_button.setEnabled(self.wallet.can_have_lightning()) + if not self.wallet.can_have_lightning(): + self.new_channel_button.setEnabled(False) + self.new_channel_button.setToolTip(_("Lightning is not available for this wallet.")) + else: + self.new_channel_button.setToolTip(_("Open a channel to send payments over the Lightning network.")) toolbar.insertWidget(2, self.new_channel_button) return toolbar