refactor msgbox retry

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

No files matched your search

+2 -1
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 {