minor fix: playingbar is not set correctly when queue is empty

This commit is contained in:
tramhao 2021-04-02 15:51:56 +08:00
parent 45b2957417
commit 93dc45dbb2
2 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,7 @@ func (p *PlayingBar) run() error {
if progress > full || p.skip {
p.skip = false
p.setProgress(0)
p.subtitle = nil
break
}

View File

@ -413,6 +413,8 @@ func start(application *tview.Application, args Args) {
if err != nil {
logError(err)
}
} else {
gomu.playingBar.setDefault()
}
})