From 0cd1b50122294ac5a5d967d934eea82aec2874f1 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 30 Jun 2016 23:16:49 +0100 Subject: [PATCH] Move plugin config add on load --- src/command/cmd_funcs.c | 1 - src/plugins/plugins.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index b935f13d..40944874 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -6032,7 +6032,6 @@ cmd_plugins(ProfWin *window, const char *const command, gchar **args) } gboolean res = plugins_load(args[1]); if (res) { - prefs_add_plugin(args[1]); cons_show("Loaded plugin: %s", args[1]); } else { cons_show("Failed to load plugin: %s", args[1]); diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c index 707ca497..ac8e33c6 100644 --- a/src/plugins/plugins.c +++ b/src/plugins/plugins.c @@ -165,6 +165,7 @@ plugins_load(const char *const name) plugin->init_func(plugin, PACKAGE_VERSION, PACKAGE_STATUS, NULL, NULL); } log_info("Loaded plugin: %s", name); + prefs_add_plugin(args[1]); return TRUE; } else { log_info("Failed to load plugin: %s", name);