mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Use rawButton in browser.py
This commit is contained in:
parent
d250d39d64
commit
7563a3c929
1 changed files with 2 additions and 3 deletions
|
@ -386,13 +386,12 @@ class Browser(QMainWindow):
|
|||
editor._links["preview"] = lambda _editor: self.onTogglePreview()
|
||||
editor.web.eval(
|
||||
f"""
|
||||
$editorToolbar.addButton({{
|
||||
component: editorToolbar.LabelButton,
|
||||
$editorToolbar.addButton(editorToolbar.labelButton({{
|
||||
label: `{tr.actions_preview()}`,
|
||||
tooltip: `{tr.browsing_preview_selected_card(val=shortcut(preview_shortcut))}`,
|
||||
onClick: () => bridgeCommand("preview"),
|
||||
disables: false,
|
||||
}}, "notetype");
|
||||
}}), "notetype");
|
||||
"""
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue