Philipp Hörist pushed to branch macos at gajim / gajim


Commits:
9f265529 by Philipp Hörist at 2026-02-23T18:22:25+01:00
More debug

- - - - -


1 changed file:

- gajim/gtk/preview/image.py


Changes:

=====================================
gajim/gtk/preview/image.py
=====================================
@@ -8,7 +8,6 @@
 
 import logging
 from concurrent.futures import Future
-from functools import partial
 from pathlib import Path
 
 from gi.repository import Gdk
@@ -123,24 +122,21 @@ def _create_thumbnail(self, type_: 
typing.Literal["image", "video"]) -> None:
     def _create_image_thumbnail(self) -> None:
         assert self._thumb_path is not None
         assert self._orig_path is not None
+        log.debug("Start image thumbnail creation for %s", self._orig_path)
         try:
-            future = app.process_pool.submit(
-                create_thumbnail,
+            create_thumbnail(
                 self._orig_path,
                 self._thumb_path,
                 app.settings.get("preview_size") * 
app.window.get_scale_factor(),
                 self._mime_type,
             )
-            future.add_done_callback(
-                partial(GLib.idle_add, self._create_thumbnail_finished)
-            )
         except Exception as error:
             log.warning("Creating thumbnail failed for: %s %s", 
self._orig_path, error)
             self.emit("display-error")
 
     def _create_video_thumbnail(self) -> None:
         assert self._orig_path is not None
-
+        log.debug("Start video thumbnail creation for %s", self._orig_path)
         try:
             extract_video_thumbnail_and_properties(
                 self._orig_path, self._thumb_path, 
app.settings.get("preview_size")



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/9f2655298fe41c89bef0db8af188052b98dacc02

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/9f2655298fe41c89bef0db8af188052b98dacc02
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to