From e447a57e7fd9f8a65bbfc7a1e1e35ed6331cf532 Mon Sep 17 00:00:00 2001 From: Nyre221 <104171042+Nyre221@users.noreply.github.com> Date: Sat, 25 Nov 2023 23:31:30 +0100 Subject: [PATCH] Fixed .svgz files not loading --- page_viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page_viewer.py b/page_viewer.py index 7cf4164..5f30bc8 100644 --- a/page_viewer.py +++ b/page_viewer.py @@ -138,7 +138,7 @@ def load_file(self, path, extension): self.qpage.loadImages([path]) self.qpage.setViewMode(qpageview.FitBoth) self.__file_loaded__() - elif extension in [".svg"]: + elif extension in [".svg",".svgz"]: self.qpage.loadSvgs([path]) self.qpage.setViewMode(qpageview.FitBoth) self.__file_loaded__()