Minor changes

This commit is contained in:
aditya-K2 2021-11-14 01:31:17 +05:30
parent b01deba484
commit 8f995c2357

View File

@ -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 {