tmp commit

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-08-04 20:58:14 +08:00
parent fd12f69afa
commit 01ab0cf196
6 changed files with 47 additions and 20 deletions

View File

@@ -326,9 +326,9 @@ class _GeneralState extends State<_General> {
update: () {
final useSeparateWindow =
mainGetLocalBoolOptionSync(kOptionSeparateRemoteWindow);
// if (useSeparateWindow) {
if (useSeparateWindow) {
rustDeskWinManager.separateWindows();
// }
}
},
),
];

View File

@@ -1656,13 +1656,13 @@ class FFI {
final cb = ffiModel.startEventListener(sessionId, id);
final useTextureRender = bind.mainUseTextureRender();
final SimpleWrapper<bool> isPeerInfoSent = SimpleWrapper(false);
final SimpleWrapper<bool> isCacheRestored = SimpleWrapper(false);
// Preserved for the rgba data.
stream.listen((message) {
if (closed) return;
if (isSessionAdded && !isPeerInfoSent.value) {
bind.sessionHandlePeerInfo(sessionId: sessionId);
isPeerInfoSent.value = true;
if (isSessionAdded && !isCacheRestored.value) {
bind.sessionRestoreCache(sessionId: sessionId);
isCacheRestored.value = true;
}
() async {
if (message is EventToUI_Event) {

View File

@@ -49,10 +49,10 @@ class RustDeskMultiWindowManager {
final String sessionIdList = await DesktopMultiWindow.invokeMethod(
windowId, kWindowEventGetSessionIdList, null);
final idList = sessionIdList.split(';');
// if (idList.length <= 1) {
// continue;
// }
for (final idPair in idList) {
if (idList.length <= 1) {
continue;
}
for (final idPair in idList.sublist(1)) {
final peerSession = idPair.split(',');
var params = {
'type': WindowType.RemoteDesktop.index,