Skip to content

Commit ee9b975

Browse files
skipping songs with lyrics turned on now fixed
1 parent 6e0ff8d commit ee9b975

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/main.dart

+10-1
Original file line numberDiff line numberDiff line change
@@ -4526,6 +4526,15 @@ Future<void> _deleteSongFile(Song song) async {
45264526
_lrcData!.lyrics.any((line) => line.lyrics.trim().isNotEmpty);
45274527
}
45284528

4529+
bool _rupdateLyricsStatus() {
4530+
_hasLyrics =
4531+
_lrcData != null &&
4532+
_lrcData!.lyrics.isNotEmpty &&
4533+
_lrcData!.lyrics.any((line) => line.lyrics.trim().isNotEmpty);
4534+
4535+
return _hasLyrics;
4536+
}
4537+
45294538
@override
45304539
void didUpdateWidget(MusicPlayerScreen oldWidget) {
45314540
super.didUpdateWidget(oldWidget);
@@ -5134,7 +5143,7 @@ Future<void> _deleteSongFile(Song song) async {
51345143
sharedBreathingValue: _breathingAnimation.value,
51355144
),
51365145
),
5137-
if (_showLyrics && _lrcData != null)
5146+
if (_showLyrics && _lrcData != null && _rupdateLyricsStatus())
51385147
Positioned.fill(
51395148
child: LyricsOverlay(
51405149
key: ValueKey(currentSong.path),

0 commit comments

Comments
 (0)