switch sides: use ipc to pass msg from ui to server

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages committed 2023-01-20 14:53:05 +08:00
1 parent 81a60725f4
commit e57949d472
4 files changed
+46 -15

No files matched your search

+1 -1
View File
@@ -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));
};
}