Fix. sciter, switch display. Close unused display services after switching. (#6962)

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2024-01-22 23:30:57 -08:00 committed by GitHub
parent 71d7398ae7
commit 2118b6dd7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -723,6 +723,11 @@ impl<T: InvokeUiSession> Session<T> {
let mut msg_out = Message::new();
msg_out.set_misc(misc);
self.send(Data::Message(msg_out));
#[cfg(not(feature = "flutter"))]
{
self.capture_displays(vec![], vec![], vec![display]);
}
}
#[cfg(not(any(target_os = "android", target_os = "ios")))]