mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-15 12:35:54 +00:00
refact, split tab to separate window
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -570,6 +570,17 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
||||
forceRelay: call.arguments['forceRelay'],
|
||||
forceSeparateWindow: call.arguments['forceSeparateWindow'],
|
||||
);
|
||||
} else if (call.method == kWindowEventSplit) {
|
||||
final args = call.arguments.split(',');
|
||||
int? windowId;
|
||||
try {
|
||||
windowId = int.parse(args[0]);
|
||||
} catch (e) {
|
||||
debugPrint("Failed to parse window id '${call.arguments}': $e");
|
||||
}
|
||||
if (windowId != null) {
|
||||
await rustDeskWinManager.splitWindow(windowId, args[1], args[2]);
|
||||
}
|
||||
}
|
||||
});
|
||||
_uniLinksSubscription = listenUniLinks();
|
||||
|
||||
Reference in New Issue
Block a user