From 43af2b24258c32dc3d6ab7416f24b3aa0e6df209 Mon Sep 17 00:00:00 2001 From: jeffser Date: Sun, 30 Jun 2024 19:14:30 -0600 Subject: [PATCH] Small tweaks on how images arer shown --- src/window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/window.py b/src/window.py index b981745..d7db2f7 100644 --- a/src/window.py +++ b/src/window.py @@ -564,7 +564,8 @@ Generate a title following these rules: if images and len(images) > 0: image_container = Gtk.Box( orientation=0, - spacing=12 + spacing=12, + visible=False ) image_scroller = Gtk.ScrolledWindow( margin_top=10, @@ -578,6 +579,7 @@ Generate a title following these rules: path = os.path.join(self.data_dir, "chats", self.chats['selected_chat'], id, image) raw_data = self.get_content_of_file(path, "image") if raw_data: + image_container.set_visible(True) image_data = base64.b64decode(raw_data) loader = GdkPixbuf.PixbufLoader.new() loader.write(image_data)