fix windows wakelock, add set_display (#6623)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-12-05 08:32:44 -05:00
committed by GitHub
parent 00fe3a76c8
commit 50b81c2356
5 changed files with 75 additions and 21 deletions

View File

@@ -98,7 +98,7 @@ impl WakeLock {
}
}
pub fn get_wake_lock(_display: bool) -> WakeLock {
pub fn get_wakelock(_display: bool) -> WakeLock {
hbb_common::log::info!("new wakelock, require display on: {_display}");
#[cfg(target_os = "android")]
return crate::platform::WakeLock::new("server");