From 2ee21a77c4fbbe596a08a0ba0a680843fcf103e7 Mon Sep 17 00:00:00 2001 From: Bastian Germann Date: Thu, 2 May 2019 11:19:23 +0200 Subject: [PATCH] Use PyMuPDF over executables if not explicitly set --- openlp/plugins/presentations/lib/pdfcontroller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openlp/plugins/presentations/lib/pdfcontroller.py b/openlp/plugins/presentations/lib/pdfcontroller.py index 6e29411bb..b58d8df4c 100644 --- a/openlp/plugins/presentations/lib/pdfcontroller.py +++ b/openlp/plugins/presentations/lib/pdfcontroller.py @@ -127,6 +127,9 @@ class PdfController(PresentationController): self.mudrawbin = program_path elif program_type == 'mutool': self.mutoolbin = program_path + elif PYMUPDF_AVAILABLE: + self.also_supports = ['xps', 'oxps'] + return True else: # Fallback to autodetection application_path = AppLocation.get_directory(AppLocation.AppDir) @@ -157,9 +160,6 @@ class PdfController(PresentationController): return True elif self.gsbin: return True - elif PYMUPDF_AVAILABLE: - self.also_supports = ['xps', 'oxps'] - return True return False def kill(self):