diff options
| author | cooljqln <cooljqln@noreply.codeberg.org> | 2025-02-03 05:49:42 +0000 |
|---|---|---|
| committer | cooljqln <cooljqln@noreply.codeberg.org> | 2025-02-03 05:49:42 +0000 |
| commit | 28846b989b75ca6fe513462c209ce95bce2a46b7 (patch) | |
| tree | d6ca8026c16558f3426885e91b3cd5617b33c314 /lua/main_menu.lua | |
| parent | 6c323f0fd075beb406df04d444fc4029b733ceb4 (diff) | |
| parent | 1c0170254cd0653cf089ba03b6a06fc9786e357a (diff) | |
| download | tangara-fw-28846b989b75ca6fe513462c209ce95bce2a46b7.tar.gz | |
Merge pull request 'UI tweaks' (#229) from schrockwell/tangara-fw:ui-tweaks-pr into main
Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/229
Diffstat (limited to 'lua/main_menu.lua')
| -rw-r--r-- | lua/main_menu.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/main_menu.lua b/lua/main_menu.lua index cc7874d7..3b512d72 100644 --- a/lua/main_menu.lua +++ b/lua/main_menu.lua @@ -56,7 +56,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 + { @@ -72,7 +71,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 } @@ -140,6 +138,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 update_visible_indexes() |
