mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Make keys parameter requiring func parameter in _addButton explicit
This commit is contained in:
parent
fce536f205
commit
cf1240bb18
1 changed files with 18 additions and 16 deletions
|
@ -252,6 +252,7 @@ class Editor:
|
|||
"""Assign func to bridge cmd, register shortcut, return button"""
|
||||
if func:
|
||||
self._links[cmd] = func
|
||||
|
||||
if keys:
|
||||
|
||||
def on_activated():
|
||||
|
@ -273,6 +274,7 @@ class Editor:
|
|||
self.widget,
|
||||
activated=on_hotkey,
|
||||
)
|
||||
|
||||
btn = self._addButton(
|
||||
icon,
|
||||
cmd,
|
||||
|
|
Loading…
Reference in a new issue