Did you know VoiceAttack doesn’t like capitalization in strings?

This commit is contained in:
alterNERDtive 2020-12-03 16:02:40 +01:00
parent c17355229f
commit 977b0c74d7

View file

@ -141,7 +141,7 @@ namespace alterNERDtive.util
{
try
{
Option option = options.Value.First(item => item.Value.VoiceTrigger == trigger).Value;
Option option = options.Value.First(item => item.Value.VoiceTrigger.ToLower() == trigger).Value;
vaProxy.SetText("~name", $"{options.Key}.{option.Name}");
vaProxy.SetText("~ttsDescription", option.TtsDescription);
vaProxy.SetText("~description", option.Description);