Fix accessing the wrong self

This commit is contained in:
Ksaper 2023-02-07 14:42:17 +02:00
parent ddd5b27ea9
commit 400bd988a8
1 changed files with 3 additions and 3 deletions

View File

@ -211,6 +211,7 @@ local function create_app_widget(self, app)
end
end)
local _self = self
function app_widget:spawn()
if app.terminal == true then
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)
end
if self.hide_on_launch then
self:hide()
if _self.hide_on_launch then
_self:hide()
end
end
local _self = self
function app_widget:select()
if _self._private.active_widget then
_self._private.active_widget:unselect()