Fix. Text clipboard is not working correctly (#7226)

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2024-02-22 13:44:44 +08:00
committed by GitHub
parent d7d7be9366
commit 09325fadaf
3 changed files with 7 additions and 13 deletions

View File

@@ -702,12 +702,9 @@ impl Client {
}
#[cfg(not(any(target_os = "android", target_os = "ios")))]
fn try_stop_clipboard(_self_id: &str) {
fn try_stop_clipboard() {
#[cfg(feature = "flutter")]
if crate::flutter::sessions::other_sessions_running(
_self_id.to_string(),
ConnType::DEFAULT_CONN,
) {
if crate::flutter::sessions::has_sessions_running(ConnType::DEFAULT_CONN) {
return;
}
TEXT_CLIPBOARD_STATE.lock().unwrap().running = false;