From f2dbb9bbc2f5b9a08f2a6e382360003b76f81583 Mon Sep 17 00:00:00 2001 From: Mike Sheldon Date: Sat, 16 Nov 2024 22:16:19 +0000 Subject: [PATCH] Fix current voice indicator for voices without subvoices --- lib/voice_selector.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/voice_selector.dart b/lib/voice_selector.dart index a796062..422109d 100644 --- a/lib/voice_selector.dart +++ b/lib/voice_selector.dart @@ -331,7 +331,8 @@ class _VoiceSelectorState extends State { const SizedBox(width: 10), downloadedModels.contains(modelFile) ? currentVoice == modelFile && - currentSubVoice == selectedSubVoice[voiceId] + currentSubVoice == + (selectedSubVoice[voiceId] ?? 0) ? const SizedBox( height: 20, width: 99,