Skip to content

Commit

Permalink
Oops, I messed up and forgot to correct my experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
qwersyk committed Dec 29, 2024
1 parent 03ae570 commit d37398c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,12 @@ def add_file(self, file_path=None, file_data=None):
loader.write(frame_data)
loader.close()
self.attached_image.set_from_pixbuf(loader.get_pixbuf())
self.attached_image_data = f"data:image/png;base64,{base64.b64encode(frame_data).decode('utf-8')}"
else:
self.attached_image.set_from_icon_name("video-x-generic")
else:
self.attached_image.set_from_file(file_path)
self.attached_image_data = file_path

self.attached_image_data = file_path
self.attached_image.set_visible(True)
elif file_data is not None:
base64_image = base64.b64encode(file_data).decode("utf-8")
Expand Down

0 comments on commit d37398c

Please sign in to comment.