From de8abebcd1b55598a7a0f676ff8a8a91c1d9d19a Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Fri, 7 May 2021 02:12:37 +0200 Subject: [PATCH] Fix Preview Button after changing from f-string to normal string --- qt/aqt/browser/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/browser/browser.py b/qt/aqt/browser/browser.py index d0c0a308a..72eb654dd 100644 --- a/qt/aqt/browser/browser.py +++ b/qt/aqt/browser/browser.py @@ -382,7 +382,7 @@ class Browser(QMainWindow): editor._links["preview"] = lambda _editor: self.onTogglePreview() editor.web.eval( - "$editorToolbar.then(({{ notetypeButtons }}) => notetypeButtons.appendButton({{ component: editorToolbar.PreviewButton }}, -1));" + "$editorToolbar.then(({ notetypeButtons }) => notetypeButtons.appendButton({ component: editorToolbar.PreviewButton }));" ) gui_hooks.editor_did_init.append(add_preview_button)