Fixed scope bugs
This commit is contained in:
@ -32,7 +32,7 @@ function P:set_tooltip(text)
|
||||
end
|
||||
|
||||
function P:new()
|
||||
widget = {}
|
||||
local widget = {}
|
||||
setmetatable(widget, self)
|
||||
self.__index = self
|
||||
|
||||
|
@ -22,7 +22,7 @@ function P:set_tooltip(text)
|
||||
end
|
||||
|
||||
function P:new()
|
||||
widget = {}
|
||||
local widget = {}
|
||||
setmetatable(widget, self)
|
||||
self.__index = self
|
||||
|
||||
|
@ -3,7 +3,9 @@ local widget_types = {
|
||||
arc = require("classes/volume/arc_widget")
|
||||
}
|
||||
|
||||
local P = {}
|
||||
local P = {
|
||||
name = "volume"
|
||||
}
|
||||
|
||||
---
|
||||
-- Internal methods
|
||||
@ -166,7 +168,7 @@ end
|
||||
---
|
||||
function P:new(args)
|
||||
-- Arguments
|
||||
v = {
|
||||
local v = {
|
||||
pa_options = args.cli_options or "",
|
||||
pa_sink = args.pa_sink or "",
|
||||
update_interval = args.update_interal or 5,
|
||||
|
Reference in New Issue
Block a user