addButton always save function
This commit is contained in:
parent
1661cad801
commit
31164adaec
@ -221,7 +221,7 @@ class Editor:
|
|||||||
disables: bool = True,
|
disables: bool = True,
|
||||||
):
|
):
|
||||||
"""Assign func to bridge cmd, register shortcut, return button"""
|
"""Assign func to bridge cmd, register shortcut, return button"""
|
||||||
if cmd not in self._links:
|
if func:
|
||||||
self._links[cmd] = func
|
self._links[cmd] = func
|
||||||
if keys:
|
if keys:
|
||||||
QShortcut( # type: ignore
|
QShortcut( # type: ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user