fix build
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
		
							parent
							
								
									bf04a03cd1
								
							
						
					
					
						commit
						7c865a80e9
					
				| @ -245,12 +245,13 @@ pub fn session_get_keyboard_mode(id: String) -> Option<String> { | ||||
| } | ||||
| 
 | ||||
| pub fn session_set_keyboard_mode(id: String, value: String) { | ||||
|     let mut mode_updated = false; | ||||
|     let mut _mode_updated = false; | ||||
|     if let Some(session) = SESSIONS.write().unwrap().get_mut(&id) { | ||||
|         session.save_keyboard_mode(value); | ||||
|         mode_updated = true; | ||||
|         _mode_updated = true; | ||||
|     } | ||||
|     if mode_updated { | ||||
|     #[cfg(windows)] | ||||
|     if _mode_updated { | ||||
|         crate::keyboard::update_grab_get_key_name(); | ||||
|     } | ||||
| } | ||||
| @ -1188,6 +1189,7 @@ pub fn main_update_me() -> SyncReturn<bool> { | ||||
| 
 | ||||
| pub fn set_cur_session_id(id: String) { | ||||
|     super::flutter::set_cur_session_id(id); | ||||
|     #[cfg(windows)] | ||||
|     crate::keyboard::update_grab_get_key_name(); | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user