Fix accessing the wrong self
This commit is contained in:
parent
ddd5b27ea9
commit
400bd988a8
|
@ -211,6 +211,7 @@ local function create_app_widget(self, app)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
local _self = self
|
||||||
function app_widget:spawn()
|
function app_widget:spawn()
|
||||||
if app.terminal == true then
|
if app.terminal == true then
|
||||||
awful.spawn.with_shell(AWESOME_SENSIBLE_TERMINAL_PATH .. " -e " .. app.executable)
|
awful.spawn.with_shell(AWESOME_SENSIBLE_TERMINAL_PATH .. " -e " .. app.executable)
|
||||||
|
@ -218,12 +219,11 @@ local function create_app_widget(self, app)
|
||||||
awful.spawn(app.executable)
|
awful.spawn(app.executable)
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.hide_on_launch then
|
if _self.hide_on_launch then
|
||||||
self:hide()
|
_self:hide()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local _self = self
|
|
||||||
function app_widget:select()
|
function app_widget:select()
|
||||||
if _self._private.active_widget then
|
if _self._private.active_widget then
|
||||||
_self._private.active_widget:unselect()
|
_self._private.active_widget:unselect()
|
||||||
|
|
Loading…
Reference in New Issue