mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-26 13:49:21 +08:00
cleanup switchlyrics
This commit is contained in:
parent
4f092ae015
commit
45c8ceaa79
@ -191,10 +191,10 @@ func (p *PlayingBar) stop() {
|
||||
// When switch lyrics, we reload the lyrics from mp3 to reflect changes
|
||||
func (p *PlayingBar) switchLyrics() {
|
||||
|
||||
// err := p.loadLyrics(gomu.player.GetCurrentSong().Path())
|
||||
// if err != nil {
|
||||
// errorPopup(err)
|
||||
// }
|
||||
err := p.loadLyrics(gomu.player.GetCurrentSong().Path())
|
||||
if err != nil {
|
||||
errorPopup(err)
|
||||
}
|
||||
// no subtitle just ignore
|
||||
if len(p.subtitles) == 0 {
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user