diff options
author | James Booth <boothj5@gmail.com> | 2016-07-04 23:00:41 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-07-04 23:00:41 +0100 |
commit | 03c7ac73fd903a6c48658fd3c5e270d35f5a80c2 (patch) | |
tree | 1855010b3135784d5c5a35b33d93bca3ba9f31a4 /src | |
parent | c8d09083a805c4ea40a9d76ac2199d1b939cd024 (diff) | |
download | profani-tty-03c7ac73fd903a6c48658fd3c5e270d35f5a80c2.tar.gz |
Move prefs_remove_plugin to plugins_unload
Diffstat (limited to 'src')
-rw-r--r-- | src/command/cmd_funcs.c | 1 | ||||
-rw-r--r-- | src/plugins/plugins.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 9b7c36a8..540773d7 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -6045,7 +6045,6 @@ cmd_plugins(ProfWin *window, const char *const command, gchar **args) } gboolean res = plugins_unload(args[1]); if (res) { - prefs_remove_plugin(args[1]); cons_show("Unloaded plugin: %s", args[1]); } else { cons_show("Failed to unload plugin: %s", args[1]); diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c index dfa8e763..ae0e65b0 100644 --- a/src/plugins/plugins.c +++ b/src/plugins/plugins.c @@ -168,7 +168,9 @@ plugins_load(const char *const name) gboolean plugins_unload(const char *const name) { - return FALSE; + prefs_remove_plugin(name); + + return TRUE; } static gchar* |