From 4880d699a48f9b69e174e78bd010186c8cb1f0eb Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 3 Jan 2019 15:51:37 -0500 Subject: [PATCH] Apply JSON metadata after calling plugin init() function --- src/plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.cpp b/src/plugin.cpp index 55501cde..4864ac7b 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -111,8 +111,8 @@ static bool loadPlugin(std::string path) { Plugin *plugin = new Plugin; plugin->path = path; plugin->handle = handle; - plugin->fromJson(rootJ); initCallback(plugin); + plugin->fromJson(rootJ); // Reject plugin if slug already exists Plugin *oldPlugin = getPlugin(plugin->slug);