fix: link and color types cannot be pasted

This commit is contained in:
pandadev 2025-01-29 17:46:02 +01:00
parent 81db3e5f79
commit 761914637c
No known key found for this signature in database
GPG key ID: C39629DACB8E762F

View file

@ -33,6 +33,8 @@ pub async fn write_and_paste(
match content_type.as_str() {
"text" => clipboard.write_text(content).map_err(|e| e.to_string())?,
"link" => clipboard.write_text(content).map_err(|e| e.to_string())?,
"color" => clipboard.write_text(content).map_err(|e| e.to_string())?,
"image" => {
clipboard.write_image_base64(content).map_err(|e| e.to_string())?;
}