From 918928d4bb3084b39f4358adfe1b87ae2537eda7 Mon Sep 17 00:00:00 2001 From: jeffser Date: Sun, 4 Aug 2024 20:01:34 -0600 Subject: [PATCH] Fixed image tooltips --- src/window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.py b/src/window.py index e5cd047..4c13207 100644 --- a/src/window.py +++ b/src/window.py @@ -661,7 +661,7 @@ Generate a title following these rules: child=image_element, css_classes=["flat", "chat_image_button"], name=os.path.join(self.data_dir, "chats", "{selected_chat}", id, image), - tooltip_text=os.path.basename(path) + tooltip_text=_("Image") ) button.connect("clicked", lambda button, file_path=path: self.preview_file(file_path, 'image', None)) except Exception as e: @@ -687,7 +687,7 @@ Generate a title following these rules: button = Gtk.Button( child=image_box, css_classes=["flat", "chat_image_button"], - tooltip_text=_("Missing image") + tooltip_text=_("Missing Image") ) button.connect("clicked", lambda button : self.show_toast(_("Missing image"), self.main_overlay)) image_container.append(button)