feat: add window size plugin injection on windows

This commit is contained in:
Kingtous
2022-10-19 09:54:04 +08:00
parent 5fff68011a
commit bf7597ec7c
3 changed files with 8 additions and 7 deletions

View File

@@ -1195,11 +1195,12 @@ Future<void> initUniLinks() async {
// check cold boot
try {
final initialLink = await getInitialLink();
// TODO: parse link
print("${initialLink}");
} on PlatformException {
// Handle exception by warning the user their action did not succeed
// return?
if (initialLink == null) {
return;
}
parseRustdeskUri(initialLink);
} catch (err) {
debugPrint("$err");
}
}
@@ -1257,6 +1258,7 @@ void parseRustdeskUri(String uriPath) {
/// uri handler
void callUniLinksUriHandler(Uri uri) {
debugPrint("uni links called: $uri");
// new connection
if (uri.authority == "connection" && uri.path.startsWith("/new/")) {
final peerId = uri.path.substring("/new/".length);