mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 13:17:12 -05:00
Merge pull request #585 from Arthur-Milchior/addButtonSaveNewFunction
addButton always save function
This commit is contained in:
commit
6c20e5a7df
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue