switch sides
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
45c0e10102
commit
333092f983
49 changed files with 373 additions and 61 deletions
|
|
@ -40,9 +40,13 @@ class RustDeskMultiWindowManager {
|
|||
int? _fileTransferWindowId;
|
||||
int? _portForwardWindowId;
|
||||
|
||||
Future<dynamic> newRemoteDesktop(String remoteId) async {
|
||||
final msg =
|
||||
jsonEncode({"type": WindowType.RemoteDesktop.index, "id": remoteId});
|
||||
Future<dynamic> newRemoteDesktop(String remoteId,
|
||||
{String? switch_uuid}) async {
|
||||
final msg = jsonEncode({
|
||||
"type": WindowType.RemoteDesktop.index,
|
||||
"id": remoteId,
|
||||
"switch_uuid": switch_uuid ?? ""
|
||||
});
|
||||
|
||||
try {
|
||||
final ids = await DesktopMultiWindow.getAllSubWindowIds();
|
||||
|
|
@ -208,7 +212,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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue