Skip to content

Progress bar is not always updated #8

Description

@fwsmit

Als je midden in een liedje zit en je selecteert een ander liedje, is de progress bar niet meteen geupdated. Pas na max een seconde gebeurt dat.

Ik heb geprobeert dit te doen op de feature/seeking branch:

diff --git a/tui/functions.go b/tui/functions.go
index 36d799c..2e50fb6 100644
--- a/tui/functions.go
+++ b/tui/functions.go
@@ -314,6 +314,7 @@ func playsong() {
        index := myTui.playlist.GetCurrentItem()
        audioplayer.PlaySong(myTui.playlist.GetCurrentItem())
        updatePlayInfo()
+       updateAudioState()
        myTui.playlist.SetCurrentItem(index)
 }
 
@@ -321,6 +322,7 @@ func previoussong() {
        index := myTui.playlist.GetCurrentItem()
        audioplayer.Previoussong()
        updatePlayInfo()
+       updateAudioState()
        myTui.playlist.SetCurrentItem(index)
 }
 
@@ -328,6 +330,7 @@ func nextsong() {
        index := myTui.playlist.GetCurrentItem()
        audioplayer.Nextsong()
        updatePlayInfo()
+       updateAudioState()
        myTui.playlist.SetCurrentItem(index)
 }

Maar dat lijkt geen effect te hebben

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions