mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-05-08 15:18:13 +03:00
fix(sicter): control side, privacy mode (#14880)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -602,7 +602,13 @@ function togglePrivacyMode(privacy_id) {
|
||||
if (!supported) {
|
||||
msgbox("nocancel", translate("Privacy mode"), translate("Unsupported"), "", function() { });
|
||||
} else {
|
||||
handler.toggle_option(privacy_id);
|
||||
var privacy_mode_impls = pi.platform_additions?.supported_privacy_mode_impl;
|
||||
if (privacy_mode_impls == null || privacy_mode_impls == undefined) {
|
||||
handler.toggle_option(privacy_id);
|
||||
return;
|
||||
}
|
||||
var is_on = handler.get_toggle_option("privacy-mode");
|
||||
handler.toggle_privacy_mode("", !is_on);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -713,4 +719,4 @@ handler.setConnectionType = function(secured, direct, stream_type) {
|
||||
handler.updateRecordStatus = function(status) {
|
||||
recording = status;
|
||||
header.update();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user