fix: restore window, on connection (#8129)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2024-05-23 22:11:40 +08:00
committed by GitHub
parent 7da09f6296
commit 1efce51222
8 changed files with 16 additions and 46 deletions

View File

@@ -174,7 +174,9 @@ class RustDeskMultiWindowManager {
windowId: windowId, peerId: remoteId);
}
await DesktopMultiWindow.invokeMethod(windowId, methodName, msg);
WindowController.fromWindowId(windowId).show();
if (methodName != kWindowEventNewRemoteDesktop) {
WindowController.fromWindowId(windowId).show();
}
registerActiveWindow(windowId);
return MultiWindowCallResult(windowId, null);
}