fix clipboard init sync

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-04-10 18:33:16 +08:00
parent 59ec397626
commit e9d5897b4b
2 changed files with 11 additions and 14 deletions

View File

@@ -690,6 +690,7 @@ impl Client {
}
}
#[inline]
#[cfg(not(any(target_os = "android", target_os = "ios")))]
fn get_current_text_clipboard_msg() -> Option<Message> {
let txt = &*OLD_CLIPBOARD_TEXT.lock().unwrap();