Skip to content

Commit

Permalink
bug fix: will continue paging, even if lyric or alternate text is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
amirchev committed Aug 1, 2021
1 parent 21be482 commit f7974e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lyrics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,14 @@ function update_lyrics_display()
text_fade_dir = 2
init_opacity = 100
if #lyrics > 0 and sourceShowing() then
text = lyrics[display_index]
if lyrics[display_index] ~= nil then
text = lyrics[display_index]
end
end
if #alternate > 0 and alternateShowing() then
alttext = alternate[display_index]
if alternate[display_index] ~= nil then
alttext = alternate[display_index]
end
end
end
if link_text then
Expand Down

0 comments on commit f7974e0

Please sign in to comment.