opt: prevent duplicate window instance on windows

This commit is contained in:
Kingtous
2023-01-20 12:03:03 +08:00
parent 45c0e10102
commit 1da141e6a7
4 changed files with 12 additions and 10 deletions

View File

@@ -1310,7 +1310,7 @@ bool callUniLinksUriHandler(Uri uri) {
Future.delayed(Duration.zero, () {
rustDeskWinManager.newRemoteDesktop(peerId);
});
return true;
return false;
}
return false;
}

View File

@@ -208,7 +208,7 @@ class RustDeskMultiWindowManager {
}
/// Remove active window which has [`windowId`]
///
///
/// [Availability]
/// This function should only be called from main window.
/// For other windows, please post a unregister(hide) event to main window handler: