fix: installed, copy&paste, special format (#9570)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
		
							parent
							
								
									9ea09c1515
								
							
						
					
					
						commit
						ba832362a7
					
				| @ -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")))] | ||||
|  | ||||
| @ -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(), | ||||
|  | ||||
| @ -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); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user