Skip to content

Commit

Permalink
Fix current voice indicator for voices without subvoices
Browse files Browse the repository at this point in the history
  • Loading branch information
Elleo committed Nov 16, 2024
1 parent a2ab895 commit f2dbb9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/voice_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ class _VoiceSelectorState extends State<VoiceSelector> {
const SizedBox(width: 10),
downloadedModels.contains(modelFile)
? currentVoice == modelFile &&
currentSubVoice == selectedSubVoice[voiceId]
currentSubVoice ==
(selectedSubVoice[voiceId] ?? 0)
? const SizedBox(
height: 20,
width: 99,
Expand Down

0 comments on commit f2dbb9b

Please # to comment.