mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-21 21:24:05 +02:00
fix: link and color types cannot be pasted
This commit is contained in:
parent
81db3e5f79
commit
761914637c
1 changed files with 2 additions and 0 deletions
|
@ -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())?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue