Fix a bug p.subtitle is not closed during initialization. This is lead to a small bug: when a song has subtitle, and 2nd song doesn't have, 3rd song will show the subtitle of 1st song.

This commit is contained in:
tramhao 2021-02-25 23:18:01 +08:00
parent a24d334638
commit d8694d5bdc

View File

@ -161,6 +161,7 @@ func (p *PlayingBar) newProgress(currentSong *AudioFile, full int) {
p.setSongTitle(currentSong.name)
p.hasTag = false
p.subtitles = nil
p.subtitle = nil
p.tag = nil
var tag *id3v2.Tag