From 68e6e7e2e5a84aeae77a1adfc77808c6a0a90b6c Mon Sep 17 00:00:00 2001 From: Ksaper Date: Fri, 3 Mar 2023 14:36:22 +0200 Subject: [PATCH] Has no effect --- widget/app_launcher/init.lua | 4 ---- 1 file changed, 4 deletions(-) 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