aboutsummaryrefslogtreecommitdiff
path: root/src/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.go')
-rw-r--r--src/app.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/app.go b/src/app.go
index 173132c..4a15cc1 100644
--- a/src/app.go
+++ b/src/app.go
@@ -109,11 +109,6 @@ func Run(cfg *Config) {
109 return nil 109 return nil
110 } 110 }
111 111
112 switch event.Rune() {
113 case 'q':
114 a.tv.Stop()
115 }
116
117 return event 112 return event
118 }) 113 })
119 114
@@ -127,6 +122,7 @@ func (a *app) switchToPage(name string) {
127 switch name { 122 switch name {
128 case "artists": 123 case "artists":
129 if a.sub == nil { 124 if a.sub == nil {
125 a.headerSections.Highlight("config")
130 return 126 return
131 } 127 }
132 if !a.artistsLoaded { 128 if !a.artistsLoaded {
@@ -141,6 +137,7 @@ func (a *app) switchToPage(name string) {
141 a.pages.SetBorder(false) 137 a.pages.SetBorder(false)
142 case "playqueue": 138 case "playqueue":
143 if a.sub == nil { 139 if a.sub == nil {
140 a.headerSections.Highlight("config")
144 return 141 return
145 } 142 }
146 a.pages.SwitchToPage("playqueue") 143 a.pages.SwitchToPage("playqueue")
@@ -149,6 +146,7 @@ func (a *app) switchToPage(name string) {
149 a.pages.SetBorder(true) 146 a.pages.SetBorder(true)
150 case "playlists": 147 case "playlists":
151 if a.sub == nil { 148 if a.sub == nil {
149 a.headerSections.Highlight("config")
152 return 150 return
153 } 151 }
154 if !a.playlistsLoaded { 152 if !a.playlistsLoaded {