mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-18 02:31:00 +03:00
persist cm chat page if chat unanswered
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
14
src/ui/cm.rs
14
src/ui/cm.rs
@@ -38,8 +38,8 @@ impl InvokeUiCM for SciterHandler {
|
||||
);
|
||||
}
|
||||
|
||||
fn remove_connection(&self, id: i32) {
|
||||
self.call("removeConnection", &make_args!(id));
|
||||
fn remove_connection(&self, id: i32, close: bool) {
|
||||
self.call("removeConnection", &make_args!(id, close));
|
||||
if crate::ui_cm_interface::get_clients_length().eq(&0) {
|
||||
crate::platform::quit_gui();
|
||||
}
|
||||
@@ -109,6 +109,14 @@ impl SciterConnectionManager {
|
||||
crate::ui_cm_interface::close(id);
|
||||
}
|
||||
|
||||
fn remove_disconnected_connection(&self, id: i32) {
|
||||
crate::ui_cm_interface::remove(id);
|
||||
}
|
||||
|
||||
fn quit(&self) {
|
||||
crate::platform::quit_gui();
|
||||
}
|
||||
|
||||
fn authorize(&self, id: i32) {
|
||||
crate::ui_cm_interface::authorize(id);
|
||||
}
|
||||
@@ -133,6 +141,8 @@ impl sciter::EventHandler for SciterConnectionManager {
|
||||
fn get_click_time();
|
||||
fn get_icon();
|
||||
fn close(i32);
|
||||
fn remove_disconnected_connection(i32);
|
||||
fn quit();
|
||||
fn authorize(i32);
|
||||
fn switch_permission(i32, String, bool);
|
||||
fn send_msg(i32, String);
|
||||
|
||||
Reference in New Issue
Block a user