use old name for preview dialog to avoid breaking add-ons

This commit is contained in:
Damien Elmes 2020-04-03 09:00:18 +10:00
parent 5f9c126caa
commit a359c27c25

View File

@ -28,7 +28,7 @@ from anki.utils import htmlToTextLine, ids2str, intTime, isMac, isWin
from aqt import AnkiQt, gui_hooks
from aqt.editor import Editor
from aqt.exporting import ExportDialog
from aqt.previewer import BrowserPreviewer
from aqt.previewer import BrowserPreviewer as PreviewDialog
from aqt.qt import *
from aqt.theme import theme_manager
from aqt.utils import (
@ -1567,7 +1567,7 @@ where id in %s"""
self._previewer.close()
self._previewer = None
else:
self._previewer = BrowserPreviewer(self, self.mw)
self._previewer = PreviewDialog(self, self.mw)
self._previewer.open()
def _renderPreview(self, cardChanged=False):