summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2022-07-16 22:22:58 -0400
committerstreetturtle <streetturtle@gmail.com>2022-07-16 22:22:58 -0400
commit5358c40a029252c1bfcabb4132e05621934a2cf6 (patch)
treec0627b58b58626d45e6b9ad7c958d14f8491a430
parent2650676e312101fca4667d24ea73ab50e5aa6c26 (diff)
Fix bug introduced by #367
-rw-r--r--spotify-widget/spotify.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spotify-widget/spotify.lua b/spotify-widget/spotify.lua
index f5ccf9c..2c30685 100644
--- a/spotify-widget/spotify.lua
+++ b/spotify-widget/spotify.lua
@@ -77,7 +77,7 @@ local function worker(user_args)
},
layout = wibox.layout.align.horizontal,
set_status = function(self, is_playing)
- self.icon.image = (is_playing and play_icon or pause_icon)
+ self:get_children_by_id('icon')[1]:set_image(is_playing and play_icon or pause_icon)
if dim_when_paused then
self:get_children_by_id('icon')[1]:set_opacity(is_playing and 1 or dim_opacity)