From f3db3fa7689879f58219b50cdbfe2d782166a867 Mon Sep 17 00:00:00 2001 From: bluegreenmagick Date: Mon, 20 Sep 2021 18:34:49 +0900 Subject: [PATCH] set CardLayout fill_empty=False for add cards editor Card layout view functions as a previewer in add cards dialog so displaying accurately is more important than having placeholders. Especially for card layouts using conditional-not fields {{^Field}} card layout is rendered badly. --- qt/aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 90c666b40..3ce7e5dc5 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -343,7 +343,7 @@ $editorToolbar.then(({{ toolbar }}) => toolbar.appendGroup({{ self.note, ord=ord, parent=self.parentWindow, - fill_empty=self.addMode, + fill_empty=False, ) if isWin: self.parentWindow.activateWindow()