From 4963dcf673e886923b3dd3351434b0e10042d3fa Mon Sep 17 00:00:00 2001 From: fufesou Date: Thu, 17 Nov 2022 19:32:59 +0800 Subject: [PATCH] fix init custom_fps option Signed-off-by: fufesou --- src/client.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client.rs b/src/client.rs index 657c50572..c98561967 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1140,6 +1140,9 @@ impl LoginConfigHandler { msg.custom_image_quality = quality << 8; 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") { msg.show_remote_cursor = BoolOption::Yes.into(); n += 1;