From 299f3cc48f683d3e6dec1efb4957fdb49b4de2c3 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Mon, 5 Feb 2024 11:02:45 +1100 Subject: Preserve the queue when going into standby --- lua/browser.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/browser.lua') diff --git a/lua/browser.lua b/lua/browser.lua index 49088389..a7f0c336 100644 --- a/lua/browser.lua +++ b/lua/browser.lua @@ -5,6 +5,7 @@ local font = require("font") local queue = require("queue") local playing = require("playing") local theme = require("theme") +local playback = require("playback") local browser = {} @@ -67,12 +68,14 @@ function browser.create(opts) local enqueue = widgets.IconBtn(buttons, "//lua/img/enqueue.png", "Enqueue") enqueue:onClicked(function() queue.add(original_iterator) + playback.playing:set(true) end) -- enqueue:add_flag(lvgl.FLAG.HIDDEN) local play = widgets.IconBtn(buttons, "//lua/img/play_small.png", "Play") play:onClicked(function() queue.clear() queue.add(original_iterator) + playback.playing:set(true) backstack.push(playing) end ) @@ -109,6 +112,7 @@ function browser.create(opts) else queue.clear() queue.add(contents) + playback.playing:set(true) backstack.push(playing) end end) -- cgit v1.2.3