From 77455cf26893afdb0d3673ddf0590fac1ea56259 Mon Sep 17 00:00:00 2001 From: aeoform <2790848120@qq.com> Date: Fri, 22 May 2026 21:29:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20sync=5Fcustom=5Fdictation=5Fto=5F?= =?UTF-8?q?plugin=20=E5=8A=A0=E4=B8=8A=20#[cfg(target=5Fos=20=3D=20"linux"?= =?UTF-8?q?)]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 函数体内引用了 crate::linux_fcitx,非 Linux 平台该模块不存在导致 E0433。 Co-Authored-By: Claude Opus 4.7 (1M context) --- openless-all/app/src-tauri/src/coordinator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openless-all/app/src-tauri/src/coordinator.rs b/openless-all/app/src-tauri/src/coordinator.rs index b37bbe34..0494d983 100644 --- a/openless-all/app/src-tauri/src/coordinator.rs +++ b/openless-all/app/src-tauri/src/coordinator.rs @@ -1700,7 +1700,6 @@ fn is_builtin_translation_shift(binding: &crate::types::ShortcutBinding) -> bool /// Linux: 从 prefs 读取自定义组合键,同步到 fcitx5 插件。 #[cfg(target_os = "linux")] -#[cfg(target_os = "linux")] fn custom_dictation_key_string(inner: &Arc) -> Option { let prefs = inner.prefs.get(); let key_string = crate::linux_fcitx::binding_to_fcitx_key_string(&prefs.dictation_hotkey); @@ -1711,6 +1710,7 @@ fn custom_dictation_key_string(inner: &Arc) -> Option { } } +#[cfg(target_os = "linux")] fn sync_custom_dictation_to_plugin(inner: &Arc) { let prefs = inner.prefs.get(); let dictation = &prefs.dictation_hotkey;