Fix toolbar action wiring
This commit is contained in:
parent
57bb896545
commit
36879dbb86
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue