fix build

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-08-05 19:20:20 +08:00
parent bf42d66171
commit 5817e48e17
3 changed files with 8 additions and 0 deletions

View File

@@ -602,6 +602,7 @@ pub fn session_change_resolution(session_id: SessionID, display: i32, width: i32
}
pub fn session_restore_cache(session_id: SessionID) {
#[cfg(not(any(target_os = "android", target_os = "ios")))]
if let Some(session) = SESSIONS.write().unwrap().get_mut(&session_id) {
session.restore_flutter_cache();
}