Skip to content

Commit

Permalink
svg and svgz now load correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyre221 authored Sep 28, 2023
1 parent cda8b62 commit 765ea51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions quick_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,9 @@ def load_file_at_index(self, index):
if is_folder or extension in [".zip", ".gz", ".xz", ".rar"]:
self.load_container_viewer(self.current_file)

elif extension in [".pdf", ".png", ".jpeg", ".jpg", ".webp", ".doc", ".docx", ".odt", ".ods", ".xlsx", ".xls", ".csv", ".odp", ".ppt", ".pptx"]:
elif extension in [".pdf", ".png", ".jpeg", ".jpg", ".webp", ".doc", ".docx", ".odt", ".ods", ".xlsx", ".xls", ".csv", ".odp", ".ppt", ".pptx",".svg", ".svgz"]:
self.load_page_viewer(self.current_file, extension)

elif extension in [".svg", ".svgz"]:
self.load_page_viewer(self.current_file, "svg")

elif extension in [".mp4", ".mp3"]:
self.load_video_viewer(self.current_file)
Expand Down

0 comments on commit 765ea51

Please sign in to comment.