diff --git a/widget/app_launcher/init.lua b/widget/app_launcher/init.lua index ab9ebd6..a978b0b 100644 --- a/widget/app_launcher/init.lua +++ b/widget/app_launcher/init.lua @@ -439,7 +439,6 @@ function app_launcher:refresh() local min_app_index_to_include = max_app_index_to_include - self._private.apps_per_page self:get_grid():reset() - collectgarbage("collect") for index, app in ipairs(self._private.matched_apps) do -- 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 = {} -- Remove all the grid widgets self:get_grid():reset() - collectgarbage("collect") if text == "" then 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 self:get_grid():reset() - collectgarbage("collect") for index, app in ipairs(self._private.matched_apps) do -- 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 self:get_grid():reset() - collectgarbage("collect") 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