feat: add window size plugin injection on windows
This commit is contained in:
parent
5fff68011a
commit
bf7597ec7c
@ -1195,11 +1195,12 @@ Future<void> initUniLinks() async {
|
|||||||
// check cold boot
|
// check cold boot
|
||||||
try {
|
try {
|
||||||
final initialLink = await getInitialLink();
|
final initialLink = await getInitialLink();
|
||||||
// TODO: parse link
|
if (initialLink == null) {
|
||||||
print("${initialLink}");
|
return;
|
||||||
} on PlatformException {
|
}
|
||||||
// Handle exception by warning the user their action did not succeed
|
parseRustdeskUri(initialLink);
|
||||||
// return?
|
} catch (err) {
|
||||||
|
debugPrint("$err");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1257,6 +1258,7 @@ void parseRustdeskUri(String uriPath) {
|
|||||||
|
|
||||||
/// uri handler
|
/// uri handler
|
||||||
void callUniLinksUriHandler(Uri uri) {
|
void callUniLinksUriHandler(Uri uri) {
|
||||||
|
debugPrint("uni links called: $uri");
|
||||||
// new connection
|
// new connection
|
||||||
if (uri.authority == "connection" && uri.path.startsWith("/new/")) {
|
if (uri.authority == "connection" && uri.path.startsWith("/new/")) {
|
||||||
final peerId = uri.path.substring("/new/".length);
|
final peerId = uri.path.substring("/new/".length);
|
||||||
|
@ -198,7 +198,6 @@ void runPortForwardScreen(Map<String, dynamic> argument) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void runConnectionManagerScreen() async {
|
void runConnectionManagerScreen() async {
|
||||||
await initEnv(kAppTypeMain);
|
|
||||||
await initEnv(kAppTypeMain);
|
await initEnv(kAppTypeMain);
|
||||||
// initialize window
|
// initialize window
|
||||||
WindowOptions windowOptions =
|
WindowOptions windowOptions =
|
||||||
|
@ -64,7 +64,7 @@ dependencies:
|
|||||||
desktop_multi_window:
|
desktop_multi_window:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/Kingtous/rustdesk_desktop_multi_window
|
url: https://github.com/Kingtous/rustdesk_desktop_multi_window
|
||||||
ref: f25487b8aacfcc9d22b86a84e97eda1a5c07ccaf
|
ref: 318ebd0a70cc5868911591c04f84bf1541f1bf4e
|
||||||
freezed_annotation: ^2.0.3
|
freezed_annotation: ^2.0.3
|
||||||
tray_manager:
|
tray_manager:
|
||||||
git:
|
git:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user