diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index b269df969..e9d44b0ac 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -221,7 +221,7 @@ class Editor: disables: bool = True, ): """Assign func to bridge cmd, register shortcut, return button""" - if cmd not in self._links: + if func: self._links[cmd] = func if keys: QShortcut( # type: ignore