opti
This commit is contained in:
@ -114,7 +114,8 @@ fn handle_clipboard_event(
|
||||
img_data.height,
|
||||
pixel_count / 1_000_000
|
||||
);
|
||||
*last_image_hash = Some(pixel_count as u64);
|
||||
let sentinel_hash = hash_bytes(&img_data.bytes[..img_data.bytes.len().min(256)]);
|
||||
*last_image_hash = Some(sentinel_hash);
|
||||
*last_text = None;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user