Fix pasted images not rendering

Pasting a single image went through save_embed_by_clipboard, which
stored the clipboard's raw RGBA pixels instead of an encoded image.
The result could not be decoded, so the embed showed as a broken image.
Always store the pasted file's own bytes instead. Nothing else uses
save_embed_by_clipboard, so it's removed.

Co-Authored-By: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Brandon Oxendine
2026-10-06 15:04:57 +02:00
committed by Rūdolfs Ošiņš
co-authored by Rūdolfs Ošiņš
parent 118abffdea
commit 8175823ab8
8 changed files with 45 additions and 40 deletions
Generated
-1
View File
@@ -4374,7 +4374,6 @@ dependencies = [
"sqlite",
"ssh-key",
"tauri",
"tauri-plugin-clipboard-manager",
"tauri-plugin-fs",
"tempfile",
"thiserror 2.0.19",