mirror of
https://github.com/ankitects/anki.git
synced 2025-11-16 09:37:12 -05: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._links["preview"] = lambda _editor: self.onTogglePreview()
|
||||||
editor.web.eval(
|
editor.web.eval(
|
||||||
f"""
|
f"""
|
||||||
$editorToolbar.addButton({{
|
$editorToolbar.addButton(editorToolbar.labelButton({{
|
||||||
component: editorToolbar.LabelButton,
|
|
||||||
label: `{tr.actions_preview()}`,
|
label: `{tr.actions_preview()}`,
|
||||||
tooltip: `{tr.browsing_preview_selected_card(val=shortcut(preview_shortcut))}`,
|
tooltip: `{tr.browsing_preview_selected_card(val=shortcut(preview_shortcut))}`,
|
||||||
onClick: () => bridgeCommand("preview"),
|
onClick: () => bridgeCommand("preview"),
|
||||||
disables: false,
|
disables: false,
|
||||||
}}, "notetype");
|
}}), "notetype");
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue