Image Previews Implementation
This commit is contained in:
15
main.go
15
main.go
@@ -24,7 +24,15 @@ func main() {
|
||||
}
|
||||
defer conn.Close()
|
||||
|
||||
UI := newApplication(*conn)
|
||||
r := newRenderer()
|
||||
c, _ := conn.CurrentSong()
|
||||
if len(c) != 0 {
|
||||
r.Start(DBDIR + c["file"])
|
||||
} else {
|
||||
r.Start("stop")
|
||||
}
|
||||
|
||||
UI := newApplication(*conn, r)
|
||||
|
||||
fileMap, err := conn.GetFiles()
|
||||
dirTree := generateDirectoryTree(fileMap)
|
||||
@@ -165,6 +173,11 @@ func main() {
|
||||
UI.App.Stop()
|
||||
return nil
|
||||
}
|
||||
case 115:
|
||||
{
|
||||
conn.Stop()
|
||||
return nil
|
||||
}
|
||||
default:
|
||||
{
|
||||
return e
|
||||
|
||||
Reference in New Issue
Block a user