mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-28 07:30:54 +03:00
[wip] one-way control
This commit is contained in:
@@ -39,7 +39,7 @@ impl ClientManager {
|
||||
pub fn activate_client(&self, handle: ClientHandle) -> bool {
|
||||
let mut clients = self.clients.borrow_mut();
|
||||
match clients.get_mut(handle as usize) {
|
||||
Some((_, s)) if s.active == false => {
|
||||
Some((_, s)) if !s.active => {
|
||||
s.active = true;
|
||||
true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user