From 7b0dbf800bdfe7fe499dd0be293e0929708e9447 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Mon, 3 Jul 2023 17:52:06 -0400 Subject: Fixed issue with loading screen and refreshing. --- plugins/plugin_manager/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/plugin_manager/init.lua') diff --git a/plugins/plugin_manager/init.lua b/plugins/plugin_manager/init.lua index 87c2bad..cb09235 100644 --- a/plugins/plugin_manager/init.lua +++ b/plugins/plugin_manager/init.lua @@ -142,9 +142,9 @@ local function run(cmd, progress) end -function PluginManager:refresh(progress) +function PluginManager:refresh(options) local prom = Promise.new() - run({ "list" }, progress):done(function(addons) + run({ "list" }, options.progress):done(function(addons) self.addons = json.decode(addons)["addons"] table.sort(self.addons, function(a,b) return a.id < b.id end) self.valid_addons = {} @@ -188,7 +188,7 @@ function PluginManager:get_addons() if self.addons then prom:resolve(self.addons) else - self:refresh():done(function() + self:refresh(options):done(function() prom:resolve(self.addons) end) end -- cgit v1.2.3