Initial Implementation of Views

This commit is contained in:
aditya-K2
2022-08-31 23:42:15 +05:30
parent e86ceaca6a
commit ff74bf02ba
11 changed files with 488 additions and 333 deletions

View File

@@ -18,14 +18,14 @@ var (
WHITE_AND_BOLD string = "[white::b]"
)
func SetConnection(c *mpd.Client) {
CONN = c
}
func SetNotificationServer(n interface{ Send(string) }) {
NotificationServer = n
}
func SetConnection(c *mpd.Client) {
CONN = c
}
func TogglePlayBack() error {
status, err := CONN.Status()
if status["state"] == "play" && err == nil {