tmp commit

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow committed 2023-06-29 20:44:49 +08:00
1 parent fc8db69d9e
commit 47fa90741f
3 files changed
+27 -6

No files matched your search

+8
View File
@@ -538,6 +538,14 @@ pub async fn start_ipc<T: InvokeUiCM>(cm: ConnectionManager<T>) {
#[cfg(target_os = "windows")]
ContextSend::enable(Config::get_option("enable-file-transfer").is_empty());
#[cfg(feature = "flutter")]
{
clipboard::set_notify_callback(crate::flutter::msgbox_clipboard_cm);
}
#[cfg(not(feature = "flutter"))]
{
// notify callback for non-flutter is not supported.
}
match ipc::new_listener("_cm").await {
Ok(mut incoming) => {