addButton always save function

This commit is contained in:
Arthur Milchior 2020-04-26 17:01:23 +02:00
parent 1661cad801
commit 31164adaec

View File

@ -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