summaryrefslogtreecommitdiff
path: root/lua/main_menu.lua
diff options
context:
space:
mode:
authorslord <slord@noreply.codeberg.org>2025-02-04 21:17:57 +0000
committerslord <slord@noreply.codeberg.org>2025-02-04 21:17:57 +0000
commit508c8c79102c6d095f92eaf72f42d3f61ef5e7ba (patch)
tree8ea20e3fd06a5c6f84d88eb822ba8ef5f8667bcd /lua/main_menu.lua
parentff733e8f0c827e3d2d91bb7db29a85807867ab5e (diff)
parent813db15da84ee82066564b51f83be451cf121a00 (diff)
downloadtangara-fw-508c8c79102c6d095f92eaf72f42d3f61ef5e7ba.tar.gz
Merge branch 'main' into playlist-browser
Diffstat (limited to 'lua/main_menu.lua')
-rw-r--r--lua/main_menu.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/main_menu.lua b/lua/main_menu.lua
index fdf11956..8754df85 100644
--- a/lua/main_menu.lua
+++ b/lua/main_menu.lua
@@ -55,7 +55,6 @@ return widgets.MenuScreen:new {
now_playing:onClicked(function() backstack.push(playing:new()) end)
- local has_focus = false
local track_duration = nil
self.bindings = self.bindings + {
@@ -71,7 +70,6 @@ return widgets.MenuScreen:new {
now_playing:add_flag(lvgl.FLAG.HIDDEN)
return
else
- has_focus = true
now_playing:clear_flag(lvgl.FLAG.HIDDEN)
end
title:set { text = track.title }
@@ -148,6 +146,10 @@ return widgets.MenuScreen:new {
local function hide_no_indexes()
no_indexes_container:add_flag(lvgl.FLAG.HIDDEN)
indexes_list:clear_flag(lvgl.FLAG.HIDDEN)
+
+ if indexes[1] then
+ indexes[1].object:focus()
+ end
end
local function hide_playlist_listing()