mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-09 22:51:29 +03:00
fix windows wakelock, add set_display (#6623)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user