From 2c80884348f4bfef96dcd69c16959a4837f050b4 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Wed, 24 Apr 2024 18:43:14 -0400 Subject: Fixed addons. --- plugins/plugin_manager/init.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/plugin_manager/init.lua b/plugins/plugin_manager/init.lua index 49aa1f9..711b734 100644 --- a/plugins/plugin_manager/init.lua +++ b/plugins/plugin_manager/init.lua @@ -171,8 +171,14 @@ if config.plugins.plugin_manager.addons then table.insert(addons, v) end end - run({ "apply", table.unpack(addons) }):done(function(status) - if status["changed"] then command.perform("core:restart") end + core.log("Applying declarative addon list.") + run({ "apply", "plugin_manager", table.unpack(addons) }):done(function(status) + if status["changed"] then + command.perform("core:restart") + core.log("Addon list applied, changes required. Performing restart...") + else + core.log("Addon list applied, no changes required.") + end end) end -- cgit v1.2.3