mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
refact, separate window, debug
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
1 parent
01ab0cf196
commit
30c2c92970
2 files changed
+10
-3
No files matched your search
@@ -52,7 +52,7 @@ const CHANGE_RESOLUTION_VALID_TIMEOUT_SECS: u64 = 15;
|
||||
#[derive(Default)]
|
||||
pub struct CacheFlutter {
|
||||
pub pi: PeerInfo,
|
||||
pub sp: SwitchDisplay,
|
||||
pub sp: Option<SwitchDisplay>,
|
||||
pub cursor_data: HashMap<u64, CursorData>,
|
||||
pub cursor_id: u64,
|
||||
}
|
||||
@@ -1197,7 +1197,9 @@ impl<T: InvokeUiSession> Session<T> {
|
||||
pub fn restore_flutter_cache(&mut self) {
|
||||
let pi = self.cache_flutter.read().unwrap().pi.clone();
|
||||
self.handle_peer_info(pi);
|
||||
self.handle_peer_switch_display(&self.cache_flutter.read().unwrap().sp);
|
||||
if let Some(sp) = self.cache_flutter.read().unwrap().sp.as_ref() {
|
||||
self.handle_peer_switch_display(sp);
|
||||
}
|
||||
for (_, cd) in self.cache_flutter.read().unwrap().cursor_data.iter() {
|
||||
self.set_cursor_data(cd.clone());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user