fix: spinning text to speech icon in word card (#2102)

This commit is contained in:
Wilson 2025-03-12 11:49:45 -04:00 committed by GitHub
parent 9cdba97a1c
commit 26638c824b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,9 +49,9 @@ class TtsController extends ChangeNotifier {
return PlatformInfos.isWindows;
}
bool _hasLoadedTextToSpeech = false;
bool get hasLoadedTextToSpeech => _hasLoadedTextToSpeech;
set hasLoadedTextToSpeech(bool value) {
bool? _hasLoadedTextToSpeech;
bool? get hasLoadedTextToSpeech => _hasLoadedTextToSpeech;
set hasLoadedTextToSpeech(bool? value) {
if (_hasLoadedTextToSpeech != value) {
_hasLoadedTextToSpeech = value;
notifyListeners();