mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
plugin_framework, test install plugin
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -1498,7 +1498,7 @@ pub fn plugin_reload(_id: String) {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn plugin_enable(_id: String, _v: bool) {
|
||||
pub fn plugin_enable(_id: String, _v: bool) -> SyncReturn<()> {
|
||||
#[cfg(feature = "plugin_framework")]
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
{
|
||||
@@ -1512,6 +1512,7 @@ pub fn plugin_enable(_id: String, _v: bool) {
|
||||
} else {
|
||||
crate::plugin::unload_plugin(&_id);
|
||||
}
|
||||
SyncReturn(())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user