mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-04 13:39:56 +00:00
Fix Generate More button dead when voice_typing_mode persists without whisper (#2354)
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
This commit is contained in:
parent
01f2fa51e4
commit
7d465d2faa
1 changed files with 1 additions and 1 deletions
|
|
@ -19839,7 +19839,7 @@ Current version indicated by LITEVER below.
|
|||
}
|
||||
function submit_generation_button(aesthetic_ui)
|
||||
{
|
||||
if(localsettings.voice_typing_mode==0) //only when voice is off
|
||||
if(localsettings.voice_typing_mode==0 || !is_using_kcpp_with_whisper()) //normal submit when voice off, or when whisper is unavailable (e.g. stale saved setting) so the button still works
|
||||
{
|
||||
if(aesthetic_ui)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue