patch: forbid enable cliprdr without feature

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
ClSlaid
2023-10-29 20:10:39 +08:00
parent dc02ce3f97
commit 79f6b5c181
6 changed files with 23 additions and 16 deletions

View File

@@ -575,12 +575,10 @@ pub async fn start_ipc<T: InvokeUiCM>(cm: ConnectionManager<T>) {
}
});
log::debug!(
"start_ipc enable context_send: {}",
Config::get_option("enable-file-transfer").is_empty()
);
#[cfg(any(target_os = "windows", target_os = "linux"))]
#[cfg(any(
target_os = "windows",
all(target_os = "linux", feature = "unix-file-copy-paste"),
))]
ContextSend::enable(Config::get_option("enable-file-transfer").is_empty());
match ipc::new_listener("_cm").await {