From 8f995c235796ebb574c9b5dbee732ad31538a4b1 Mon Sep 17 00:00:00 2001 From: aditya-K2 Date: Sun, 14 Nov 2021 01:31:17 +0530 Subject: [PATCH] Minor changes --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 8fdbcd1..05a0aee 100644 --- a/main.go +++ b/main.go @@ -89,11 +89,11 @@ func main() { CONN.Next() }, "clearPlaylist": func() { - notificationServer.Send("PlayList Cleared") CONN.Clear() if InsidePlaylist { UpdatePlaylist(UI.ExpandedView) } + notificationServer.Send("PlayList Cleared") }, "previousSong": func() { CONN.Previous() @@ -150,14 +150,15 @@ func main() { UI.App.Stop() }, "stop": func() { - notificationServer.Send("Playback Stopped") CONN.Stop() + notificationServer.Send("Playback Stopped") }, "updateDB": func() { _, err = CONN.Update("") if err != nil { panic(err) } + notificationServer.Send("Database Updated") }, "deleteSongFromPlaylist": func() { if InsidePlaylist {