From 7c6eb2997cbba350e7384151e13659271508e08f Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 24 Nov 2023 15:13:10 +1100 Subject: Migrate 'now playing' screen to lua --- lua/browser.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lua/browser.lua') 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() -- cgit v1.2.3