Fixed scope bugs

This commit is contained in:
2022-04-24 10:12:00 -07:00
parent bcfd464cbb
commit 58d15e1aa6
8 changed files with 22 additions and 20 deletions

View File

@ -32,7 +32,7 @@ function P:set_tooltip(text)
end
function P:new()
widget = {}
local widget = {}
setmetatable(widget, self)
self.__index = self

View File

@ -22,7 +22,7 @@ function P:set_tooltip(text)
end
function P:new()
widget = {}
local widget = {}
setmetatable(widget, self)
self.__index = self

View File

@ -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,