From 400bd988a89059fa57537f8b0e71fa4d11af51d3 Mon Sep 17 00:00:00 2001 From: Ksaper Date: Tue, 7 Feb 2023 14:42:17 +0200 Subject: [PATCH] Fix accessing the wrong self --- widget/app_launcher/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widget/app_launcher/init.lua b/widget/app_launcher/init.lua index 36513da..3382468 100644 --- a/widget/app_launcher/init.lua +++ b/widget/app_launcher/init.lua @@ -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()