Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(linux): 隐藏声纹过滤设置与搜索入口

DavidShenbcccb5c2723d
diff --git a/apps/desktop/src/renderer/components/settings/VoiceInputSection.settings-search.ts b/apps/desktop/src/renderer/components/settings/VoiceInputSection.settings-search.ts
index a5dd138b6f..14e48c60ca 100644
--- a/apps/desktop/src/renderer/components/settings/VoiceInputSection.settings-search.ts
+++ b/apps/desktop/src/renderer/components/settings/VoiceInputSection.settings-search.ts
@@ -17,7 +17,7 @@ export default {
{ id: 'settings.voiceInput.sections.usageData', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-voice-usage-data', titleKey: 'settings.voiceInput.sections.usageData', sectionKey: 'settings.tabs.voiceInput' },
{ id: 'settings.voiceInput.fastActivation.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-fastActivation-label', titleKey: 'settings.voiceInput.fastActivation.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.fastActivation.hint' },
{ id: 'settings.voiceInput.composerLongPress.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-composerLongPress-label', titleKey: 'settings.voiceInput.composerLongPress.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.composerLongPress.hint' },
- { id: 'settings.voiceInput.speakerFilter.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-speakerFilter-label', titleKey: 'settings.voiceInput.speakerFilter.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.speakerFilter.hint' },
+ { id: 'settings.voiceInput.speakerFilter.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-speakerFilter-label', titleKey: 'settings.voiceInput.speakerFilter.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.speakerFilter.hint', isVisible: ({ platform }) => platform === 'darwin' || platform === 'win32' },
{ id: 'settings.voiceInput.shortcut.label', fallbackTargetId: 'settings-panel-voice-input', tab: 'voice-input', targetId: 'settings-search-settings-voiceInput-shortcut-label', titleKey: 'settings.voiceInput.shortcut.label', sectionKey: 'settings.tabs.voiceInput', descriptionKey: 'settings.voiceInput.shortcut.hint' },
],
diff --git a/apps/desktop/src/renderer/components/settings/VoiceSpeakerFilterCard.tsx b/apps/desktop/src/renderer/components/settings/VoiceSpeakerFilterCard.tsx
index 5a2fc13f59..0e5b168ea1 100644
--- a/apps/desktop/src/renderer/components/settings/VoiceSpeakerFilterCard.tsx
+++ b/apps/desktop/src/renderer/components/settings/VoiceSpeakerFilterCard.tsx
@@ -94,6 +94,7 @@ export function VoiceSpeakerFilterCard({
const showDetails = supported && status !== null && (enabled || status.enrolled);
const modelsReady = status?.modelState === 'ready';
+ if (window.electronAPI.platform !== 'darwin' && window.electronAPI.platform !== 'win32') return null;
return (
<section