From b17f8a3dcc36ec2479412f603c7b5e77003b80a2 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 18 Apr 2024 11:38:53 +1000 Subject: Merge the StatusBar bindings table with each screen's bindings table --- lua/playing.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/playing.lua') diff --git a/lua/playing.lua b/lua/playing.lua index deee6987..bfca8b68 100644 --- a/lua/playing.lua +++ b/lua/playing.lua @@ -41,7 +41,7 @@ return screen:new { }) self.root:center() - self.status_bar = widgets.StatusBar(self.root, { + self.status_bar = widgets.StatusBar(self, { back_cb = backstack.pop, transparent_bg = true, }) @@ -201,7 +201,7 @@ return screen:new { controls:Object({ flex_grow = 1, h = 1 }) -- spacer - self.bindings = { + self.bindings = self.bindings + { playback.playing:bind(function(playing) if playing then play_pause_img:set_src(img.pause) -- cgit v1.2.3