refactor msgbox retry

This commit is contained in:
rustdesk
2021-08-11 01:28:53 +08:00
parent 6130792734
commit 4e85841398
4 changed files with 33 additions and 16 deletions

View File

@@ -1663,7 +1663,8 @@ fn make_fd(id: i32, entries: &Vec<FileEntry>, only_count: bool) -> Value {
#[async_trait]
impl Interface for Handler {
fn msgbox(&self, msgtype: &str, title: &str, text: &str) {
self.call("msgbox", &make_args!(msgtype, title, text));
let retry = check_if_retry(msgtype, title, text);
self.call("msgbox_retry", &make_args!(msgtype, title, text, retry));
}
fn handle_login_error(&mut self, err: &str) -> bool {