mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-28 13:48:53 +08:00
code clean up
This commit is contained in:
parent
f2388cacd9
commit
08a9e6f8d6
@ -205,6 +205,7 @@ func (p *Player) TogglePause() {
|
||||
|
||||
// skips current song
|
||||
func (p *Player) Skip() {
|
||||
|
||||
if queue.GetItemCount() > 0 {
|
||||
p.ctrl.Streamer = nil
|
||||
p.done <- true
|
||||
|
10
playlist.go
10
playlist.go
@ -40,13 +40,13 @@ func InitPlaylist() *Playlist {
|
||||
|
||||
tree := tview.NewTreeView().SetRoot(root)
|
||||
|
||||
playlist := &Playlist{tree,nil}
|
||||
playlist := &Playlist{tree, nil}
|
||||
|
||||
rootAudioFile := &AudioFile{
|
||||
Name: root.GetText(),
|
||||
Path: rootDir,
|
||||
IsAudioFile: false,
|
||||
Parent: nil,
|
||||
Name: root.GetText(),
|
||||
Path: rootDir,
|
||||
IsAudioFile: false,
|
||||
Parent: nil,
|
||||
}
|
||||
|
||||
root.SetReference(rootAudioFile)
|
||||
|
Loading…
x
Reference in New Issue
Block a user