mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Move plugin config add on load
This commit is contained in:
parent
ef6bad483e
commit
0cd1b50122
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user