fix init custom_fps option

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2022-11-17 19:32:59 +08:00
parent 75d8168070
commit 4963dcf673

View File

@ -1140,6 +1140,9 @@ impl LoginConfigHandler {
msg.custom_image_quality = quality << 8; msg.custom_image_quality = quality << 8;
n += 1; n += 1;
} }
if let Some(custom_fps) = self.options.get("custom-fps") {
msg.custom_fps = custom_fps.parse().unwrap_or(30);
}
if self.get_toggle_option("show-remote-cursor") { if self.get_toggle_option("show-remote-cursor") {
msg.show_remote_cursor = BoolOption::Yes.into(); msg.show_remote_cursor = BoolOption::Yes.into();
n += 1; n += 1;