mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-11 15:29:12 +02:00
7d465d2faa
submit_generation_button() only performed normal generation when voice_typing_mode==0. If a session saved voice_typing_mode>0 and is then reopened without a Whisper model loaded, the option is greyed out and cannot be reset, so onclick fell through and did nothing while the button was still visually a submit button - Generate More (and Submit) stopped working. Guard the branch with is_using_kcpp_with_whisper(), matching the pattern already used everywhere else voice_typing_mode is checked (init, submit button rendering, ready_to_record). When Whisper is unavailable the button now behaves as a normal generation button regardless of the stale saved setting. Behaviour is unchanged when Whisper is loaded. Fixes #2353