From 1e694218dfabb3cd2dc9291be6902a8e1065a464 Mon Sep 17 00:00:00 2001 From: Ksaper Date: Sun, 12 Feb 2023 18:16:43 +0200 Subject: [PATCH] Add method to dynamically update app launcher favorites --- widget/app_launcher/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/widget/app_launcher/init.lua b/widget/app_launcher/init.lua index 122f86a..3a58d1e 100644 --- a/widget/app_launcher/init.lua +++ b/widget/app_launcher/init.lua @@ -573,6 +573,12 @@ local function generate_apps(self) end end +-- Sets favorites +function app_launcher:set_favorites(favorites) + self.favorites = favorites + generate_apps(self) +end + --- Scrolls up function app_launcher:scroll_up() scroll(self, "up")