mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 03:26:22 +00:00
Move plugin config add on load
This commit is contained in:
@@ -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]);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user