fix: installed, copy&paste, special format (#9570)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-10-06 08:32:04 +08:00 committed by GitHub
parent 9ea09c1515
commit ba832362a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,7 @@ pub struct ClipboardNonFile {
pub height: i32,
// message.proto: ClipboardFormat
pub format: i32,
pub special_name: String,
}
#[cfg(not(any(target_os = "android", target_os = "ios")))]

View File

@ -117,6 +117,7 @@ impl Handler {
format: ClipboardFormat::from_i32(c.format)
.unwrap_or(ClipboardFormat::Text)
.into(),
special_name: c.special_name,
..Default::default()
})
.collect(),

View File

@ -512,6 +512,7 @@ impl<T: InvokeUiCM> IpcTaskRunner<T> {
width: c.width,
height: c.height,
format: c.format.value(),
special_name: c.special_name,
});
}
allow_err!(self.stream.send(&Data::ClipboardNonFile(Some(("".to_owned(), main_data)))).await);