Minor changes
This commit is contained in:
parent
b01deba484
commit
8f995c2357
5
main.go
5
main.go
@ -89,11 +89,11 @@ func main() {
|
|||||||
CONN.Next()
|
CONN.Next()
|
||||||
},
|
},
|
||||||
"clearPlaylist": func() {
|
"clearPlaylist": func() {
|
||||||
notificationServer.Send("PlayList Cleared")
|
|
||||||
CONN.Clear()
|
CONN.Clear()
|
||||||
if InsidePlaylist {
|
if InsidePlaylist {
|
||||||
UpdatePlaylist(UI.ExpandedView)
|
UpdatePlaylist(UI.ExpandedView)
|
||||||
}
|
}
|
||||||
|
notificationServer.Send("PlayList Cleared")
|
||||||
},
|
},
|
||||||
"previousSong": func() {
|
"previousSong": func() {
|
||||||
CONN.Previous()
|
CONN.Previous()
|
||||||
@ -150,14 +150,15 @@ func main() {
|
|||||||
UI.App.Stop()
|
UI.App.Stop()
|
||||||
},
|
},
|
||||||
"stop": func() {
|
"stop": func() {
|
||||||
notificationServer.Send("Playback Stopped")
|
|
||||||
CONN.Stop()
|
CONN.Stop()
|
||||||
|
notificationServer.Send("Playback Stopped")
|
||||||
},
|
},
|
||||||
"updateDB": func() {
|
"updateDB": func() {
|
||||||
_, err = CONN.Update("")
|
_, err = CONN.Update("")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
notificationServer.Send("Database Updated")
|
||||||
},
|
},
|
||||||
"deleteSongFromPlaylist": func() {
|
"deleteSongFromPlaylist": func() {
|
||||||
if InsidePlaylist {
|
if InsidePlaylist {
|
||||||
|
Loading…
Reference in New Issue
Block a user