mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Move prefs_remove_plugin to plugins_unload
This commit is contained in:
parent
c8d09083a8
commit
03c7ac73fd
@ -6045,7 +6045,6 @@ cmd_plugins(ProfWin *window, const char *const command, gchar **args)
|
|||||||
}
|
}
|
||||||
gboolean res = plugins_unload(args[1]);
|
gboolean res = plugins_unload(args[1]);
|
||||||
if (res) {
|
if (res) {
|
||||||
prefs_remove_plugin(args[1]);
|
|
||||||
cons_show("Unloaded plugin: %s", args[1]);
|
cons_show("Unloaded plugin: %s", args[1]);
|
||||||
} else {
|
} else {
|
||||||
cons_show("Failed to unload plugin: %s", args[1]);
|
cons_show("Failed to unload plugin: %s", args[1]);
|
||||||
|
@ -168,7 +168,9 @@ plugins_load(const char *const name)
|
|||||||
gboolean
|
gboolean
|
||||||
plugins_unload(const char *const name)
|
plugins_unload(const char *const name)
|
||||||
{
|
{
|
||||||
return FALSE;
|
prefs_remove_plugin(name);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar*
|
static gchar*
|
||||||
|
Loading…
Reference in New Issue
Block a user