added the possibility to uninstall a plugin

This commit is contained in:
Philip Flohr
2018-05-07 20:29:34 +02:00
committed by Dmitry Podgorny
parent e4ddced420
commit cd86f5bc28
5 changed files with 39 additions and 0 deletions

View File

@@ -6663,6 +6663,23 @@ cmd_plugins_install(ProfWin *window, const char *const command, gchar **args)
return TRUE;
}
gboolean
cmd_plugins_uninstall(ProfWin *window, const char *const command, gchar **args)
{
if (args[1] == NULL) {
return FALSE;
}
gboolean res = plugins_uninstall(args[1]);
if (res) {
cons_show("Uninstalled plugin: %s", args[1]);
} else {
cons_show("Failed to uninstall plugin: %s", args[1]);
}
return TRUE;
}
gboolean
cmd_plugins_load(ProfWin *window, const char *const command, gchar **args)
{