Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
748b2882 by wurstsalat at 2024-09-24T22:53:50+02:00
fix: Preview: Update preview object while updating progress

Fixes #11991

- - - - -


1 changed file:

- gajim/gtk/preview.py


Changes:

=====================================
gajim/gtk/preview.py
=====================================
@@ -82,7 +82,9 @@ def get_text(self) -> str:
         return self._preview.uri
 
     @ensure_not_destroyed
-    def update_progress(self, _preview: Preview, progress: float) -> None:
+    def update_progress(self, preview: Preview, progress: float) -> None:
+        self._preview = preview
+
         self._ui.preview_stack.set_visible_child_name('preview')
         self._ui.download_button.hide()
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/748b2882e0a7da72f89894373e105ee63fd1d31a

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/748b2882e0a7da72f89894373e105ee63fd1d31a
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

Reply via email to