mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-08 21:41:02 +03:00
refact: remove feature plugin-framework (#15854)
* refact: remove feature plugin-framework Signed-off-by: fufesou <linlong1266@gmail.com> * refact: remove unused translations Signed-off-by: fufesou <linlong1266@gmail.com> * fix: delete settings tab observable with correct type Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -1437,14 +1437,6 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
|
||||
#[cfg(all(feature = "flutter", feature = "unix-file-copy-paste"))]
|
||||
crate::flutter::update_file_clipboard_required();
|
||||
|
||||
// on connection established client
|
||||
#[cfg(all(feature = "flutter", feature = "plugin_framework"))]
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
crate::plugin::handle_listen_event(
|
||||
crate::plugin::EVENT_ON_CONN_CLIENT.to_owned(),
|
||||
self.handler.get_id(),
|
||||
);
|
||||
}
|
||||
|
||||
if self.handler.is_file_transfer() {
|
||||
@@ -1988,26 +1980,6 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
);
|
||||
}
|
||||
}
|
||||
#[cfg(all(feature = "flutter", feature = "plugin_framework"))]
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
Some(misc::Union::PluginRequest(p)) => {
|
||||
allow_err!(crate::plugin::handle_server_event(
|
||||
&p.id,
|
||||
&self.handler.get_id(),
|
||||
&p.content
|
||||
));
|
||||
// to-do: show message box on UI when error occurs?
|
||||
}
|
||||
#[cfg(all(feature = "flutter", feature = "plugin_framework"))]
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
Some(misc::Union::PluginFailure(p)) => {
|
||||
let name = if p.name.is_empty() {
|
||||
"plugin".to_string()
|
||||
} else {
|
||||
p.name
|
||||
};
|
||||
self.handler.msgbox("custom-nocancel", &name, &p.msg, "");
|
||||
}
|
||||
Some(misc::Union::SupportedEncoding(e)) => {
|
||||
log::info!("update supported encoding:{:?}", e);
|
||||
self.handler.lc.write().unwrap().supported_encoding = e;
|
||||
|
||||
Reference in New Issue
Block a user