mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 14:59:02 +08:00
add voice_call start_pa
This commit is contained in:
parent
4a648f0068
commit
f2a612c3d9
@ -136,9 +136,6 @@ class PlatformFFI {
|
||||
// Start a dbus service for uri links, no need to await
|
||||
_ffiBind.mainStartDbusServer();
|
||||
}
|
||||
if (appType == kAppTypeConnectionManager) {
|
||||
_ffiBind.mainStartPa();
|
||||
}
|
||||
} else if (isMacOS && isMain) {
|
||||
// Start ipc service for uri links.
|
||||
_ffiBind.mainStartIpcUrlServer();
|
||||
|
@ -1412,10 +1412,6 @@ class RustdeskImpl {
|
||||
return false;
|
||||
}
|
||||
|
||||
Future<void> mainStartPa({dynamic hint}) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
bool mainHideDocker({dynamic hint}) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
@ -1839,11 +1839,6 @@ pub fn main_is_login_wayland() -> SyncReturn<bool> {
|
||||
SyncReturn(is_login_wayland())
|
||||
}
|
||||
|
||||
pub fn main_start_pa() {
|
||||
#[cfg(target_os = "linux")]
|
||||
std::thread::spawn(crate::ipc::start_pa);
|
||||
}
|
||||
|
||||
pub fn main_hide_docker() -> SyncReturn<bool> {
|
||||
#[cfg(target_os = "macos")]
|
||||
crate::platform::macos::hide_dock();
|
||||
|
@ -1268,6 +1268,8 @@ impl<T: InvokeUiSession> Session<T> {
|
||||
|
||||
#[inline]
|
||||
pub fn request_voice_call(&self) {
|
||||
#[cfg(target_os = "linux")]
|
||||
std::thread::spawn(crate::ipc::start_pa);
|
||||
self.send(Data::NewVoiceCall);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user