summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/playing.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/lua/playing.lua b/lua/playing.lua
index 6ed18844..86ecf20c 100644
--- a/lua/playing.lua
+++ b/lua/playing.lua
@@ -271,7 +271,12 @@ return screen:new {
end_time:set { text = format_time(playback.position:get()) }
end
title:set { text = track.title }
- album:set { text = string.sub(track.album, 1, 58) }
+ if track.album then
+ album:set { text = string.sub(track.album, 1, 58) }
+ album:clear_flag(lvgl.FLAG.HIDDEN)
+ else
+ album:add_flag(lvgl.FLAG.HIDDEN)
+ end
artist:set { text = track.artist }
end),
queue.position:bind(function(pos)