Improve DjVu support

This commit is contained in:
BasioMeusPuga
2019-03-15 19:07:07 -04:00
parent eb49ca92a4
commit 38de0dcd13
7 changed files with 45 additions and 44 deletions

View File

@@ -106,7 +106,7 @@ class PliantQGraphicsView(QtWidgets.QGraphicsView):
elif self.filetype == 'djvu':
page_data = self.book.pages[page]
pixmap = render_djvu_page(page_data, '/tmp')
pixmap = render_djvu_page(page_data)
return pixmap
@@ -183,12 +183,10 @@ class PliantQGraphicsView(QtWidgets.QGraphicsView):
# TODO
# Get caching working for double page view
# Get caching working for DjVu files
# All of these must be True
caching_conditions = (
not double_page_mode,
not self.filetype == 'djvu',
self.main_window.settings['caching_enabled'])
if False not in caching_conditions: