diff options
author | Romanos Skiadas <rom.skiad@gmail.com> | 2021-08-23 11:06:44 +0300 |
---|---|---|
committer | Romanos Skiadas <rom.skiad@gmail.com> | 2021-08-23 11:20:08 +0300 |
commit | cede33fa3f1418adc0714c85a2cfed42afdd4335 (patch) | |
tree | c56c4fb9c1848da1ffb9574548a8f4c6c0fd451f | |
parent | cdeed22ba5d6a657d1e090587fa84b0ac99fda20 (diff) |
mpris-widget: fix call to set_text
.set_text is invalid, it should be :set_text like in the other branches
of the if.
-rw-r--r-- | mpris-widget/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mpris-widget/init.lua b/mpris-widget/init.lua index 83cb3e5..c6b2ca6 100644 --- a/mpris-widget/init.lua +++ b/mpris-widget/init.lua @@ -52,8 +52,8 @@ local mpris_widget = wibox.widget{ widget = wibox.widget.textbox }, layout = wibox.layout.fixed.horizontal, - set_text = function(self, artis, title) - self:get_children_by_id('artist')[1]:set_text(artis) + set_text = function(self, artist, title) + self:get_children_by_id('artist')[1]:set_text(artist) self:get_children_by_id('title')[1]:set_text(title) end } @@ -188,7 +188,7 @@ local function worker() icon.image = PAUSE_ICON_NAME widget.colors = {beautiful.widget_main_color} mpdarc_current_song_widget.markup = current_song - widget.set_text(artist, current_song) + widget:set_text(artist, current_song) elseif mpdstatus == "Stopped" then mpdarc_icon_widget.visible = true icon.image = STOP_ICON_NAME |