mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 08:34:12 +00:00
virtual_display_privacy_mode, switch privacy, debug
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
1 parent
1905a81f9a
commit
d2ff675fbc
4 files changed
+9
-8
No files matched your search
@@ -317,11 +317,11 @@ impl<T: InvokeUiSession> Session<T> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn toggle_privacy_mode(&self, impl_key: String) {
|
||||
pub fn toggle_privacy_mode(&self, impl_key: String, on: bool) {
|
||||
let mut misc = Misc::new();
|
||||
misc.set_toggle_privacy_mode(TogglePrivacyMode {
|
||||
impl_key,
|
||||
on: !self.lc.read().unwrap().get_toggle_option("privacy-mode"),
|
||||
on,
|
||||
..Default::default()
|
||||
});
|
||||
let mut msg_out = Message::new();
|
||||
|
||||
Reference in new issue
Block a user