fix(linux): move streaming insert toggle into recording card

On Linux, hide the clipboard/paste/capsule settings group and move
the streaming insert toggle directly into the recording input card.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
aeoformandClaude Opus 4.7 committed 2026-05-29 21:36:49 +08:00
1 parent eb05bc1ca1
commit 05a4634768
1 file changed
+8 -12
@@ -215,6 +215,14 @@ export function RecordingInputSection() {
<SettingRow label={t('settings.recording.muteDuringRecordingLabel')}>
<Toggle on={prefs.muteDuringRecording} onToggle={onMuteDuringRecordingChange} />
</SettingRow>
{os === 'linux' && (
<SettingRow label={t('settings.advanced.streamingInsertLabel')}>
<Toggle
on={!!prefs.streamingInsert}
onToggle={(next) => void savePrefs({ ...prefs, streamingInsert: next })}
/>
</SettingRow>
)}
</Card>
{/* ─── 插入与剪贴板(折叠,仅 macOS / Windows) ──────────────── */}
@@ -262,18 +270,6 @@ export function RecordingInputSection() {
</SettingRow>
</Collapsible>
)}
{/* ─── 流式输入(Linux) ────────────────────────────────────────── */}
{os === 'linux' && (
<Card>
<SettingRow label={t('settings.advanced.streamingInsertLabel')}>
<Toggle
on={!!prefs.streamingInsert}
onToggle={(next) => void savePrefs({ ...prefs, streamingInsert: next })}
/>
</SettingRow>
</Card>
)}
{/* ─── 启动(折叠) ──────────────────────────────────────────── */}
<Collapsible title={t('settings.recording.startupGroupTitle')}>
<AutostartRow />