mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-13 16:21:06 +03:00
feat: show my cursor (#12745)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -2132,7 +2132,19 @@ impl LoginConfigHandler {
|
||||
option.show_remote_cursor = f(self.get_toggle_option("show-remote-cursor"));
|
||||
option.enable_file_transfer = f(self.config.enable_file_copy_paste.v);
|
||||
option.lock_after_session_end = f(self.config.lock_after_session_end.v);
|
||||
if config.show_my_cursor.v {
|
||||
config.show_my_cursor.v = false;
|
||||
option.show_my_cursor = BoolOption::No.into();
|
||||
}
|
||||
}
|
||||
} else if name == "show-my-cursor" {
|
||||
config.show_my_cursor.v = !config.show_my_cursor.v;
|
||||
option.show_my_cursor = if config.show_my_cursor.v {
|
||||
BoolOption::Yes
|
||||
} else {
|
||||
BoolOption::No
|
||||
}
|
||||
.into();
|
||||
} else {
|
||||
let is_set = self
|
||||
.options
|
||||
@@ -2225,6 +2237,9 @@ impl LoginConfigHandler {
|
||||
if view_only || self.get_toggle_option("show-remote-cursor") {
|
||||
msg.show_remote_cursor = BoolOption::Yes.into();
|
||||
}
|
||||
if view_only && self.get_toggle_option("show-my-cursor") {
|
||||
msg.show_my_cursor = BoolOption::Yes.into();
|
||||
}
|
||||
if self.get_toggle_option("follow-remote-cursor") {
|
||||
msg.follow_remote_cursor = BoolOption::Yes.into();
|
||||
}
|
||||
@@ -2309,6 +2324,8 @@ impl LoginConfigHandler {
|
||||
self.config.allow_swap_key.v
|
||||
} else if name == "view-only" {
|
||||
self.config.view_only.v
|
||||
} else if name == "show-my-cursor" {
|
||||
self.config.show_my_cursor.v
|
||||
} else if name == "follow-remote-cursor" {
|
||||
self.config.follow_remote_cursor.v
|
||||
} else if name == "follow-remote-window" {
|
||||
|
||||
Reference in New Issue
Block a user