diff options
author | Simon Garrelou <simon.garrelou@gmail.com> | 2022-12-08 22:35:17 +0100 |
---|---|---|
committer | Simon Garrelou <simon.garrelou@gmail.com> | 2022-12-08 22:35:17 +0100 |
commit | 7e4333dac70cdb003e71b6805ed4d81f18aa233a (patch) | |
tree | 26190c147141f765d69880d98d891bf50071e891 /src/footer.go | |
parent | 96cc5db2b4062ced82faf01ddac24abef04df343 (diff) | |
download | termsonic-7e4333dac70cdb003e71b6805ed4d81f18aa233a.tar.gz termsonic-7e4333dac70cdb003e71b6805ed4d81f18aa233a.zip |
Music playback working
Diffstat (limited to 'src/footer.go')
-rw-r--r-- | src/footer.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/footer.go b/src/footer.go index b0494d0..2695a61 100644 --- a/src/footer.go +++ b/src/footer.go | |||
@@ -1,14 +1,9 @@ | |||
1 | package src | 1 | package src |
2 | 2 | ||
3 | func (a *app) updateFooter() { | 3 | func (a *app) updateFooter() { |
4 | switch a.header.GetHighlights()[0] { | 4 | switch a.headerSections.GetHighlights()[0] { |
5 | case "artists": | 5 | case "artists": |
6 | switch a.tv.GetFocus() { | 6 | a.footer.SetText("[blue]l:[yellow] Next song [blue]k:[yellow] Toggle pause") |
7 | case a.artistsTree: | ||
8 | a.footer.SetText("Artists: [blue]Up/Down:[yellow] Move selection [blue]Space:[yellow] Select entry") | ||
9 | case a.songsList: | ||
10 | a.footer.SetText("Songs: [blue]Up/Down:[yellow] Move selection [blue]Space:[yellow] Play") | ||
11 | } | ||
12 | case "playlists": | 7 | case "playlists": |
13 | a.footer.SetText("Come back later!") | 8 | a.footer.SetText("Come back later!") |
14 | case "config": | 9 | case "config": |