simple privacy mode

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2022-01-15 16:57:07 +08:00
1 parent a1c4b08535
commit 25492c815c
8 files changed
+197 -90

No files matched your search

+2 -4
View File
@@ -1020,11 +1020,9 @@ pub fn toggle_blank_screen(v: bool) {
}
}
pub fn block_input(v: bool) {
pub fn block_input(v: bool) -> bool {
let v = if v { TRUE } else { FALSE };
unsafe {
BlockInput(v);
}
unsafe { BlockInput(v) == TRUE }
}
pub fn add_recent_document(path: &str) {