Slightly simplify the isThumbnailViewEnabled check in PDFRenderingQueue.renderHighestPriority

This commit is contained in:
Jonas Jenwald 2021-10-23 19:59:14 +02:00
parent 91692a20d1
commit 3dc738c4c8

View File

@ -82,10 +82,11 @@ class PDFRenderingQueue {
return;
}
// No pages needed rendering, so check thumbnails.
if (this.pdfThumbnailViewer && this.isThumbnailViewEnabled) {
if (this.pdfThumbnailViewer.forceRendering()) {
return;
}
if (
this.isThumbnailViewEnabled &&
this.pdfThumbnailViewer?.forceRendering()
) {
return;
}
if (this.printing) {