simple privacy demo

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-01-14 00:32:09 +08:00
parent 8f998771c9
commit a1c4b08535
3 changed files with 102 additions and 23 deletions

View File

@@ -1013,11 +1013,10 @@ fn run_cmds(cmds: String, show: bool) -> ResultType<()> {
Ok(())
}
pub fn toggle_privacy_mode(v: bool) {
pub fn toggle_blank_screen(v: bool) {
let v = if v { TRUE } else { FALSE };
unsafe {
blank_screen(v);
BlockInput(v);
}
}