Skip to content

Commit a6dbf90

Browse files
committed
fix(whisper): show HotkeyRecorder when Custom is selected from dropdown
The recorder visibility was gated on whisperPresetValue which only reflects the stored hotkey — but selecting 'Custom…' doesn't change the stored value, so the recorder never appeared. Use whisperSelectValue instead, which accounts for the user's explicit Custom selection.
1 parent 325b90e commit a6dbf90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/renderer/src/settings/AITab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ const AITab: React.FC = () => {
14901490
))}
14911491
<option value={WHISPER_PRESET_CUSTOM_VALUE}>{t('settings.ai.whisper.hotkeys.custom')}</option>
14921492
</select>
1493-
{whisperPresetValue === WHISPER_PRESET_CUSTOM_VALUE && (
1493+
{whisperSelectValue === WHISPER_PRESET_CUSTOM_VALUE && (
14941494
<HotkeyRecorder
14951495
value={whisperSpeakToggleHotkey}
14961496
onChange={(hotkey) => {

0 commit comments

Comments
 (0)