addButton always save function
This commit is contained in:
parent
1661cad801
commit
31164adaec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user