plugin_framework, manager, install plugin

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2023-05-12 08:48:14 +08:00
1 parent 6f5ff0ac0e
commit db71dd039d
21 files changed
+1078 -372

No files matched your search

+1 -1
View File
@@ -280,7 +280,7 @@ impl ManagerConfig {
let enabled = bool::from_str(value).unwrap_or(false);
allow_err!(Self::set_plugin_option_enabled(id, enabled));
if enabled {
allow_err!(super::load_plugin(None, Some(id)));
allow_err!(super::load_plugin(id));
} else {
super::unload_plugin(id);
}