|
|
@ -56,7 +56,6 @@ return widgets.MenuScreen:new { |
|
|
|
|
|
|
|
|
|
|
|
now_playing:onClicked(function() backstack.push(playing:new()) end) |
|
|
|
now_playing:onClicked(function() backstack.push(playing:new()) end) |
|
|
|
|
|
|
|
|
|
|
|
local has_focus = false |
|
|
|
|
|
|
|
local track_duration = nil |
|
|
|
local track_duration = nil |
|
|
|
|
|
|
|
|
|
|
|
self.bindings = self.bindings + { |
|
|
|
self.bindings = self.bindings + { |
|
|
@ -72,7 +71,6 @@ return widgets.MenuScreen:new { |
|
|
|
now_playing:add_flag(lvgl.FLAG.HIDDEN) |
|
|
|
now_playing:add_flag(lvgl.FLAG.HIDDEN) |
|
|
|
return |
|
|
|
return |
|
|
|
else |
|
|
|
else |
|
|
|
has_focus = true |
|
|
|
|
|
|
|
now_playing:clear_flag(lvgl.FLAG.HIDDEN) |
|
|
|
now_playing:clear_flag(lvgl.FLAG.HIDDEN) |
|
|
|
end |
|
|
|
end |
|
|
|
title:set { text = track.title } |
|
|
|
title:set { text = track.title } |
|
|
@ -140,6 +138,10 @@ return widgets.MenuScreen:new { |
|
|
|
local function hide_no_indexes() |
|
|
|
local function hide_no_indexes() |
|
|
|
no_indexes_container:add_flag(lvgl.FLAG.HIDDEN) |
|
|
|
no_indexes_container:add_flag(lvgl.FLAG.HIDDEN) |
|
|
|
indexes_list:clear_flag(lvgl.FLAG.HIDDEN) |
|
|
|
indexes_list:clear_flag(lvgl.FLAG.HIDDEN) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if indexes[1] then |
|
|
|
|
|
|
|
indexes[1].object:focus() |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
local function update_visible_indexes() |
|
|
|
local function update_visible_indexes() |
|
|
|