mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-28 13:48:53 +08:00
Fix a bug that when saving the queue, the current song is not saved
This commit is contained in:
parent
a25a584416
commit
914e072089
4
queue.go
4
queue.go
@ -203,6 +203,10 @@ func (q *Queue) saveQueue() error {
|
||||
songPaths := q.getItems()
|
||||
var content strings.Builder
|
||||
|
||||
songPath := gomu.player.currentSong.path
|
||||
hashed := sha1Hex(getName(songPath))
|
||||
content.WriteString(hashed + "\n")
|
||||
|
||||
for _, songPath := range songPaths {
|
||||
// hashed song name is easier to search through
|
||||
hashed := sha1Hex(getName(songPath))
|
||||
|
Loading…
x
Reference in New Issue
Block a user