qt: make ElectrumWindow.lightning_button wider
What changed, and why it matters
This commit is a tiny user-interface tweak: it makes a Lightning Network status button slightly wider so that its percentage text (shown while syncing network gossip) is not cut off and displayed as '...'. There is no security issue here.
No security action needed. Treat as a normal UI fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change increases the maximum width of ElectrumWindow.lightning_button from 25 + 5 * char_width_in_lineedit() to 25 + 6 * char_width_in_lineedit(). This is purely a cosmetic/layout fix to prevent Qt from eliding the progress percentage string during Lightning gossip sync.
Changed components
electrum/gui/qt/main_window.pyInspect captured patch +1 / −1
diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py
index 9b7552e..482a4bb 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."))
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.