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


Commits:
e8a8484a by wurstsalat at 2022-05-02T21:31:41+02:00
fix: Preview: Improve behavior in public group chats

- - - - -


1 changed file:

- gajim/gtk/preview.py


Changes:

=====================================
gajim/gtk/preview.py
=====================================
@@ -134,6 +134,7 @@ def update(self, preview: Preview, data: 
Optional[GdkPixbufType]) -> None:
             self._ui.download_button.hide()
             self._ui.open_folder_button.show()
             self._ui.save_as_button.show()
+            self._ui.link_button.hide()
             if (preview.orig_path is not None and preview.is_audio and
                     app.is_installed('GST') and
                     contains_audio_streams(preview.orig_path)):
@@ -154,6 +155,7 @@ def update(self, preview: Preview, data: 
Optional[GdkPixbufType]) -> None:
                 image = Gtk.Image.new_from_icon_name(
                     'dialog-question', Gtk.IconSize.DIALOG)
                 self._ui.icon_button.set_image(image)
+                self._ui.download_button.show()
                 file_size_string = _('Automatic preview disabled')
 
         self._ui.file_size.set_text(file_size_string)



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

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


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to