commit
dc88d56d77
22
main.go
22
main.go
@ -42,17 +42,6 @@ func main() {
|
|||||||
// Connecting the Renderer to the Main UI
|
// Connecting the Renderer to the Main UI
|
||||||
ui.ConnectRenderer(Renderer)
|
ui.ConnectRenderer(Renderer)
|
||||||
|
|
||||||
if c, err := CONN.CurrentSong(); err != nil {
|
|
||||||
utils.Print("RED", "Could Not Retrieve the Current Song\n")
|
|
||||||
panic(err)
|
|
||||||
} else {
|
|
||||||
if len(c) != 0 {
|
|
||||||
Renderer.Start(c["file"])
|
|
||||||
} else {
|
|
||||||
Renderer.Start("stop")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
UI := ui.NewApplication()
|
UI := ui.NewApplication()
|
||||||
|
|
||||||
// Connecting the Notification Server to the Main UI
|
// Connecting the Notification Server to the Main UI
|
||||||
@ -97,6 +86,17 @@ func main() {
|
|||||||
Notify := notify.NewNotificationServer()
|
Notify := notify.NewNotificationServer()
|
||||||
Notify.Start()
|
Notify.Start()
|
||||||
|
|
||||||
|
if c, err := CONN.CurrentSong(); err != nil {
|
||||||
|
utils.Print("RED", "Could Not Retrieve the Current Song\n")
|
||||||
|
panic(err)
|
||||||
|
} else {
|
||||||
|
if len(c) != 0 {
|
||||||
|
Renderer.Start(c["file"])
|
||||||
|
} else {
|
||||||
|
Renderer.Start("stop")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Connecting Notification Server to Client and Rendering Module so that they can send Notifications
|
// Connecting Notification Server to Client and Rendering Module so that they can send Notifications
|
||||||
client.SetNotificationServer(Notify)
|
client.SetNotificationServer(Notify)
|
||||||
render.SetNotificationServer(Notify)
|
render.SetNotificationServer(Notify)
|
||||||
|
Loading…
Reference in New Issue
Block a user