From d0ea2ad74945f2468f2ecb1d041cc61b6323a4ab Mon Sep 17 00:00:00 2001 From: ijgnd <40218852+ijgnd@users.noreply.github.com> Date: Thu, 13 Feb 2020 18:51:11 +0100 Subject: [PATCH] small fix: store return value for hook in preview --- qt/aqt/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/browser.py b/qt/aqt/browser.py index 4b741a463..4f2c09dba 100644 --- a/qt/aqt/browser.py +++ b/qt/aqt/browser.py @@ -1737,7 +1737,7 @@ where id in %s""" av_player.play_tags(audio) txt = self.mw.prepare_card_text_for_display(txt) - gui_hooks.card_will_show( + txt = gui_hooks.card_will_show( txt, c, "preview" + self._previewState.capitalize() ) self._lastPreviewState = self._previewStateAndMod()