cleanup switchlyrics

This commit is contained in:
tramhao 2021-03-16 00:39:13 +08:00
parent 4f092ae015
commit 45c8ceaa79

View File

@ -191,10 +191,10 @@ func (p *PlayingBar) stop() {
// When switch lyrics, we reload the lyrics from mp3 to reflect changes // When switch lyrics, we reload the lyrics from mp3 to reflect changes
func (p *PlayingBar) switchLyrics() { func (p *PlayingBar) switchLyrics() {
// err := p.loadLyrics(gomu.player.GetCurrentSong().Path()) err := p.loadLyrics(gomu.player.GetCurrentSong().Path())
// if err != nil { if err != nil {
// errorPopup(err) errorPopup(err)
// } }
// no subtitle just ignore // no subtitle just ignore
if len(p.subtitles) == 0 { if len(p.subtitles) == 0 {
return return