Merge pull request #4446 from fufesou/fix/build_plugin_framework_ffi

fix build
This commit is contained in:
RustDesk 2023-05-22 22:03:14 +08:00 committed by GitHub
commit 72f08f6dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1597,8 +1597,8 @@ pub fn plugin_install(_id: String, _b: bool) {
#[cfg(not(any(target_os = "android", target_os = "ios")))]
{
if _b {
if let Err(e) = crate::plugin::install_plugin(&id) {
log::error!("Failed to install plugin '{}': {}", id, e);
if let Err(e) = crate::plugin::install_plugin(&_id) {
log::error!("Failed to install plugin '{}': {}", _id, e);
}
} else {
crate::plugin::uninstall_plugin(&_id, true);