Minor cleanup

This commit is contained in:
2022-04-24 12:27:54 -07:00
parent 9f72bdb16b
commit 161576e2cd
10 changed files with 10 additions and 11 deletions

View File

@ -5,6 +5,7 @@ local widget_types = {
local P = {
name = "mpc"
}
P.__index = P
---
-- Internal methods
@ -102,7 +103,6 @@ function P:new(args)
mpd_host = args.mpd_host or "localhost",
}
setmetatable(m, self)
self.__index = self
-- Create widget for this volume interface
m.widget = widget_types[m.widget_type]:new()

View File

@ -1,4 +1,5 @@
local P = {}
P.__index = P
function P:update(args)
if (args.error ~= nil) then
@ -28,7 +29,6 @@ end
function P:new()
local widget = {}
setmetatable(widget, self)
self.__index = self
widget.title = wibox.widget.textbox("MPD is not")
widget.title.valign = "center"