mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Add type to add_preview_shortcut
This commit is contained in:
parent
fb8a2f4dc8
commit
5702b3c273
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ $editorToolbar.addButton({{
|
|||
"""
|
||||
)
|
||||
|
||||
def add_preview_shortcut(cuts, editor: Editor) -> None:
|
||||
def add_preview_shortcut(cuts: List[Tuple], editor: Editor) -> None:
|
||||
cuts.append(("Ctrl+Shift+P", self.onTogglePreview, True))
|
||||
|
||||
gui_hooks.editor_did_init.append(add_preview_button)
|
||||
|
|
Loading…
Reference in a new issue