From 7ccf1187551e089c96a50e2548bc1884b7f4c6e1 Mon Sep 17 00:00:00 2001 From: f321x Date: Fri, 12 Dec 2025 09:50:26 +0100 Subject: [PATCH] qt: make ElectrumWindow.lightning_button wider Qt was showing the lightning_button percentage string while syncing gossip as `...` instead of the percentage as the minimum width of the button seemed too small. Increasing this a bit fixes the issue. --- electrum/gui/qt/main_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index 9b7552eff..482a4bba0 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -1941,7 +1941,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener): self.lightning_button.setText('') self.lightning_button.setToolTip(_("The Lightning Network graph is fully synced.")) else: - self.lightning_button.setMaximumWidth(25 + 5 * char_width_in_lineedit()) + self.lightning_button.setMaximumWidth(25 + 6 * char_width_in_lineedit()) self.lightning_button.setText(progress_str) self.lightning_button.setToolTip(_("The Lightning Network graph is syncing...\n" "Payments are more likely to succeed with a more complete graph."))