Philipp Hörist pushed to branch gtk4 at gajim / gajim
Commits: 088fc35a by mesonium at 2024-11-06T21:05:31+00:00 fix: Guess mime-type of orig file - - - - - 1 changed file: - gajim/common/preview.py Changes: ===================================== gajim/common/preview.py ===================================== @@ -416,7 +416,7 @@ def _on_thumb_load_finished(data: bytes | None, preview.thumbnail = data # Thumbnails are stored always as PNG, we don’t know the # mime-type of the original picture - preview.mime_type = '' + preview.mime_type = guess_mime_type(preview.orig_path) preview.file_size = os.path.getsize(preview.orig_path) preview.update_widget(data=data) View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/088fc35a8421c973c8f6ed6c508647272b7e8282 -- View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/088fc35a8421c973c8f6ed6c508647272b7e8282 You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list -- commits@gajim.org To unsubscribe send an email to commits-le...@gajim.org