fix cur session

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-01-20 21:03:30 +08:00
parent 30278d12d3
commit 3dcada128b
6 changed files with 68 additions and 47 deletions

View File

@@ -319,7 +319,6 @@ pub fn session_enter_or_leave(id: String, enter: bool) {
#[cfg(not(any(target_os = "android", target_os = "ios")))]
if let Some(session) = SESSIONS.read().unwrap().get(&id) {
if enter {
crate::keyboard::set_cur_session(session.clone());
session.enter();
} else {
session.leave();