Has no effect
This commit is contained in:
parent
6f5b50fb4f
commit
68e6e7e2e5
|
@ -439,7 +439,6 @@ function app_launcher:refresh()
|
||||||
local min_app_index_to_include = max_app_index_to_include - self._private.apps_per_page
|
local min_app_index_to_include = max_app_index_to_include - self._private.apps_per_page
|
||||||
|
|
||||||
self:get_grid():reset()
|
self:get_grid():reset()
|
||||||
collectgarbage("collect")
|
|
||||||
|
|
||||||
for index, app in ipairs(self._private.matched_apps) do
|
for index, app in ipairs(self._private.matched_apps) do
|
||||||
-- Only add widgets that are between this range (part of the current page)
|
-- Only add widgets that are between this range (part of the current page)
|
||||||
|
@ -457,7 +456,6 @@ function app_launcher:search()
|
||||||
self._private.matched_apps = {}
|
self._private.matched_apps = {}
|
||||||
-- Remove all the grid widgets
|
-- Remove all the grid widgets
|
||||||
self:get_grid():reset()
|
self:get_grid():reset()
|
||||||
collectgarbage("collect")
|
|
||||||
|
|
||||||
if text == "" then
|
if text == "" then
|
||||||
self._private.matched_apps = self._private.all_apps
|
self._private.matched_apps = self._private.all_apps
|
||||||
|
@ -554,7 +552,6 @@ function app_launcher:page_forward(dir)
|
||||||
|
|
||||||
-- Remove the current page apps from the grid
|
-- Remove the current page apps from the grid
|
||||||
self:get_grid():reset()
|
self:get_grid():reset()
|
||||||
collectgarbage("collect")
|
|
||||||
|
|
||||||
for index, app in ipairs(self._private.matched_apps) do
|
for index, app in ipairs(self._private.matched_apps) do
|
||||||
-- Only add widgets that are between this range (part of the current page)
|
-- Only add widgets that are between this range (part of the current page)
|
||||||
|
@ -599,7 +596,6 @@ function app_launcher:page_backward(dir)
|
||||||
|
|
||||||
-- Remove the current page apps from the grid
|
-- Remove the current page apps from the grid
|
||||||
self:get_grid():reset()
|
self:get_grid():reset()
|
||||||
collectgarbage("collect")
|
|
||||||
|
|
||||||
local max_app_index_to_include = self._private.apps_per_page * self:get_current_page()
|
local max_app_index_to_include = self._private.apps_per_page * self:get_current_page()
|
||||||
local min_app_index_to_include = max_app_index_to_include - self._private.apps_per_page
|
local min_app_index_to_include = max_app_index_to_include - self._private.apps_per_page
|
||||||
|
|
Loading…
Reference in New Issue