mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-11 12:21:30 +03:00
fix windows wakelock, add set_display (#6623)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -733,4 +733,11 @@ impl WakeLock {
|
||||
.ok(),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn set_display(&mut self, display: bool) -> ResultType<()> {
|
||||
self.0
|
||||
.as_mut()
|
||||
.map(|h| h.set_display(display))
|
||||
.ok_or(anyhow!("no AwakeHandle"))?
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user