mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-29 07:30:02 +00:00
try start tray when a new controlled connection is established for windows flutter
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
1 parent
c254eebea2
commit
db0ab2e4a9
1 file changed
+6
@@ -1351,6 +1351,12 @@ impl Connection {
|
|||||||
log::error!("ipc to connection manager exit: {}", err);
|
log::error!("ipc to connection manager exit: {}", err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
#[cfg(all(windows, feature = "flutter"))]
|
||||||
|
std::thread::spawn(|| {
|
||||||
|
if crate::is_server() && !crate::check_process("--tray", false) {
|
||||||
|
crate::platform::run_as_user(vec!["--tray"]).ok();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user