mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-15 12:35:54 +00:00
switch sides: use ipc to pass msg from ui to server
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -248,7 +248,7 @@ pub fn get_clients_length() -> usize {
|
||||
#[cfg(feature = "flutter")]
|
||||
pub fn switch_back(id: i32) {
|
||||
if let Some(client) = CLIENTS.read().unwrap().get(&id) {
|
||||
allow_err!(client.tx.send(Data::SwitchBack));
|
||||
allow_err!(client.tx.send(Data::SwitchSidesBack));
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user