What changed, and why it matters
This commit is a minor user-interface improvement: it adds the visible text label 'Tools' next to a small toolbar button in Electrum's Qt desktop wallet. There is no security change, no bug fix, and no behavior change beyond making the button easier to see and click.
No security action needed. Treat as a normal UI/UX change during routine review.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch modifies electrum/gui/qt/my_treeview.py’s create_toolbar_with_menu() helper. It calls setText(_(‘Tools’)) and setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextBesideIcon) on the QToolButton so the toolbar button displays both an icon and localized text. No signal handlers, permissions, input handling, or cryptographic code are touched.
Changed components
electrum/gui/qt/my_treeview.pyInspect captured patch +2 / −0
diff --git a/electrum/gui/qt/my_treeview.py b/electrum/gui/qt/my_treeview.py
index 363a151..6c26073 100644
--- a/electrum/gui/qt/my_treeview.py
+++ b/electrum/gui/qt/my_treeview.py
@@ -110,7 +110,9 @@ class QMenuWithConfig(QMenu):
def create_toolbar_with_menu(config: 'SimpleConfig', title):
menu = QMenuWithConfig(config)
toolbar_button = QToolButton()
+ toolbar_button.setText(_('Tools'))
toolbar_button.setIcon(read_QIcon("preferences.png"))
+ toolbar_button.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
toolbar_button.setMenu(menu)
toolbar_button.setPopupMode(QToolButton.ToolButtonPopupMode.InstantPopup)
toolbar_button.setFocusPolicy(Qt.FocusPolicy.NoFocus)
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.