From 0bbf279e5ece83756f1463081a1ab6754721085e Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 27 Jun 2024 12:22:53 +1000 Subject: Add a button to shuffle+play the current view --- lua/playing.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua/playing.lua') diff --git a/lua/playing.lua b/lua/playing.lua index 71d95892..6a9488e2 100644 --- a/lua/playing.lua +++ b/lua/playing.lua @@ -243,8 +243,9 @@ return screen:new { if not pos then return end playlist_pos:set { text = tostring(pos) } + local can_next = pos < queue.size:get() or queue.random:get() theme.set_style( - next_img, pos < queue.size:get() and icon_enabled_class or icon_disabled_class + next_img, can_next and icon_enabled_class or icon_disabled_class ) end), queue.random:bind(function(shuffling) -- cgit v1.2.3