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

@@ -322,7 +322,7 @@ fn core_main_invoke_new_connection(mut args: std::env::Args) -> Option<Vec<Strin
"RustDesk",
(WM_USER + 2) as _, // referred from unilinks desktop pub
uni_links.as_str(),
true,
false,
);
return if res { None } else { Some(Vec::new()) };
}