summaryrefslogtreecommitdiff
path: root/lua/browser.lua
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-11-24 15:13:10 +1100
committerjacqueline <me@jacqueline.id.au>2023-11-24 15:13:10 +1100
commit7c6eb2997cbba350e7384151e13659271508e08f (patch)
treeb6f95a4843521e69b24cbf4c126d84442d19fc23 /lua/browser.lua
parent230721cd6271f3239b42e1d2471f8db15bebd712 (diff)
downloadtangara-fw-7c6eb2997cbba350e7384151e13659271508e08f.tar.gz
Migrate 'now playing' screen to lua
Diffstat (limited to 'lua/browser.lua')
-rw-r--r--lua/browser.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/browser.lua b/lua/browser.lua
index f07d80bc..415e5dbb 100644
--- a/lua/browser.lua
+++ b/lua/browser.lua
@@ -5,6 +5,7 @@ local database = require("database")
local backstack = require("backstack")
local font = require("font")
local queue = require("queue")
+local playing = require("playing")
local browser = {}
@@ -73,6 +74,7 @@ function browser.create(opts)
play:onClicked(function()
queue.clear()
queue.add(original_iterator)
+ backstack.push(playing)
end
)
end
@@ -107,8 +109,7 @@ function browser.create(opts)
else
queue.clear()
queue.add(contents)
- legacy_ui.open_now_playing()
- -- backstack.push(playing)
+ backstack.push(playing)
end
end)
btn:onevent(lvgl.EVENT.FOCUSED, function()