mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-28 13:48:53 +08:00
Merge pull request #39 from issadarkthing/bug-fix
Fix playing bar sets to default when paused
This commit is contained in:
commit
fc53a63e65
@ -110,7 +110,6 @@ func (p *PlayingBar) run() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gomu.app.QueueUpdateDraw(func() {
|
gomu.app.QueueUpdateDraw(func() {
|
||||||
p.text.Clear()
|
|
||||||
p.text.SetText(fmt.Sprintf("%s ┃%s┫ %s\n\n%v",
|
p.text.SetText(fmt.Sprintf("%s ┃%s┫ %s\n\n%v",
|
||||||
fmtDuration(start),
|
fmtDuration(start),
|
||||||
progressBar,
|
progressBar,
|
||||||
|
2
start.go
2
start.go
@ -473,7 +473,7 @@ func start(application *tview.Application, args Args) {
|
|||||||
|
|
||||||
init := false
|
init := false
|
||||||
gomu.app.SetAfterDrawFunc(func(_ tcell.Screen) {
|
gomu.app.SetAfterDrawFunc(func(_ tcell.Screen) {
|
||||||
if !init && !gomu.player.IsRunning() {
|
if !init && len(gomu.queue.items) == 0 {
|
||||||
gomu.playingBar.setDefault()
|
gomu.playingBar.setDefault()
|
||||||
init = true
|
init = true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user