mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 02:26:21 +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]);
|
gboolean res = plugins_load(args[1]);
|
||||||
if (res) {
|
if (res) {
|
||||||
prefs_add_plugin(args[1]);
|
|
||||||
cons_show("Loaded plugin: %s", args[1]);
|
cons_show("Loaded plugin: %s", args[1]);
|
||||||
} else {
|
} else {
|
||||||
cons_show("Failed to load plugin: %s", args[1]);
|
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);
|
plugin->init_func(plugin, PACKAGE_VERSION, PACKAGE_STATUS, NULL, NULL);
|
||||||
}
|
}
|
||||||
log_info("Loaded plugin: %s", name);
|
log_info("Loaded plugin: %s", name);
|
||||||
|
prefs_add_plugin(args[1]);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
log_info("Failed to load plugin: %s", name);
|
log_info("Failed to load plugin: %s", name);
|
||||||
|
|||||||
Reference in New Issue
Block a user