Fix toolbar action wiring

This commit is contained in:
lm 2025-10-19 19:55:55 +02:00
parent 57bb896545
commit 36879dbb86
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ class MainWindow(QtWidgets.QMainWindow, I18nMixin):
self._toolbar_buttons: Dict[str, ToolbarButton] = {}
for key, icon_txt, text_key in buttons:
label = self._t(text_key)
button = ToolbarButton(icon_txt, label, lambda k=key: self._invoke_action(k))
button = ToolbarButton(icon_txt, label, lambda _checked=False, k=key: self._invoke_action(k))
layout.addWidget(button)
self._toolbar_buttons[key] = button