Get the text from self, no need to pass it as well
This commit is contained in:
parent
097f007a34
commit
7207d9792a
|
@ -196,7 +196,8 @@ local function app_widget(self, app)
|
||||||
return widget
|
return widget
|
||||||
end
|
end
|
||||||
|
|
||||||
local function search(self, text)
|
local function search(self)
|
||||||
|
local text = self._private.text
|
||||||
local old_pos = self._private.grid:get_widget_position(self._private.active_widget)
|
local old_pos = self._private.grid:get_widget_position(self._private.active_widget)
|
||||||
|
|
||||||
-- Reset all the matched apps
|
-- Reset all the matched apps
|
||||||
|
@ -601,7 +602,7 @@ function app_launcher:set_favorites(favorites)
|
||||||
self.favorites = favorites
|
self.favorites = favorites
|
||||||
sort_apps(self)
|
sort_apps(self)
|
||||||
-- Refresh the app list
|
-- Refresh the app list
|
||||||
search(self, self._private.text)
|
search(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Scrolls up
|
--- Scrolls up
|
||||||
|
@ -723,7 +724,7 @@ local function new(args)
|
||||||
autostart = true,
|
autostart = true,
|
||||||
single_shot = true,
|
single_shot = true,
|
||||||
callback = function()
|
callback = function()
|
||||||
search(ret, ret._private.text)
|
search(ret)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue