fix: window on top when url scheme received from ipc

This commit is contained in:
Kingtous
2023-05-02 16:14:38 +08:00
parent 9bb9d637c7
commit f4c5a3d903
2 changed files with 6 additions and 7 deletions

View File

@@ -1581,13 +1581,7 @@ bool checkArguments() {
/// Returns true if we successfully handle the uri provided.
/// [Functions]
/// 1. New Connection: rustdesk://connection/new/your_peer_id
/// 2. Bring the main window to the top: empty uriPath
bool parseRustdeskUri(String uriPath) {
// If we invoke uri with blank path, we just bring the main window to tht top.
if (uriPath.isEmpty) {
window_on_top(null);
return true;
}
final uri = Uri.tryParse(uriPath);
if (uri == null) {
debugPrint("uri is not valid: $uriPath");