mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-21 00:33:19 +03:00
fix: ignore session hook on android/ios
This commit is contained in:
@@ -502,6 +502,7 @@ impl InvokeUiSession for FlutterHandler {
|
|||||||
#[cfg(not(feature = "flutter_texture_render"))]
|
#[cfg(not(feature = "flutter_texture_render"))]
|
||||||
fn on_rgba(&self, rgba: &mut scrap::ImageRgb) {
|
fn on_rgba(&self, rgba: &mut scrap::ImageRgb) {
|
||||||
// Give a chance for plugins or etc to hook a rgba data.
|
// Give a chance for plugins or etc to hook a rgba data.
|
||||||
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
for (key, hook) in self.hooks.read().unwrap().iter() {
|
for (key, hook) in self.hooks.read().unwrap().iter() {
|
||||||
match hook {
|
match hook {
|
||||||
SessionHook::OnSessionRgba(cb) => {
|
SessionHook::OnSessionRgba(cb) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user