user fps adjust

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-10-19 10:19:49 +08:00
parent 829f30fe29
commit 32ad458b25
7 changed files with 218 additions and 45 deletions

View File

@@ -134,6 +134,11 @@ impl<T: InvokeUiSession> Session<T> {
}
}
pub fn set_custom_fps(&mut self, custom_fps: i32) {
let msg = self.lc.write().unwrap().set_custom_fps(custom_fps);
self.send(Data::Message(msg));
}
pub fn get_remember(&self) -> bool {
self.lc.read().unwrap().remember
}
@@ -1181,7 +1186,12 @@ impl<T: InvokeUiSession> Interface for Session<T> {
if self.is_file_transfer() {
self.close_success();
} else if !self.is_port_forward() {
self.msgbox("success", "Successful", "Connected, waiting for image...", "");
self.msgbox(
"success",
"Successful",
"Connected, waiting for image...",
"",
);
}
#[cfg(windows)]
{