Use rawButton in browser.py

This commit is contained in:
Henrik Giesel 2021-04-23 17:34:42 +02:00
parent d250d39d64
commit 7563a3c929

View File

@ -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");
"""
)