Close previewer if there is no card to render

This commit is contained in:
Henrik Giesel 2021-01-10 02:01:24 +01:00
parent ace61835de
commit fce536f205

View File

@ -1575,7 +1575,10 @@ where id in %s"""
def _renderPreview(self):
if self._previewer:
self._previewer.render_card()
if self.singleCard:
self._previewer.render_card()
else:
self.onTogglePreview()
def _cleanup_preview(self):
if self._previewer: