aboutsummaryrefslogtreecommitdiff
path: root/plugins/plugin_manager
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/plugin_manager')
-rw-r--r--plugins/plugin_manager/init.lua10
1 files changed, 8 insertions, 2 deletions
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