From ab2427f4b342af2ec7c386a1c9a3c6c8aa60d515 Mon Sep 17 00:00:00 2001 From: Martichou Date: Fri, 9 Aug 2024 19:21:58 +0200 Subject: [PATCH] fix: attempt to use open::detached for #88 and #91 Signed-off-by: Martichou --- app/legacy/src-tauri/src/cmds/open_url.rs | 2 +- app/main/src-tauri/src/cmds/open_url.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/legacy/src-tauri/src/cmds/open_url.rs b/app/legacy/src-tauri/src/cmds/open_url.rs index 9e03cbf..97a0fa9 100644 --- a/app/legacy/src-tauri/src/cmds/open_url.rs +++ b/app/legacy/src-tauri/src/cmds/open_url.rs @@ -2,7 +2,7 @@ pub fn open_url(message: String) -> Result<(), String> { info!("open_url: {:?}", &message); - match open::that(message) { + match open::that_detached(message) { Ok(_) => { trace!("open_url: success"); diff --git a/app/main/src-tauri/src/cmds/open_url.rs b/app/main/src-tauri/src/cmds/open_url.rs index 9e03cbf..97a0fa9 100644 --- a/app/main/src-tauri/src/cmds/open_url.rs +++ b/app/main/src-tauri/src/cmds/open_url.rs @@ -2,7 +2,7 @@ pub fn open_url(message: String) -> Result<(), String> { info!("open_url: {:?}", &message); - match open::that(message) { + match open::that_detached(message) { Ok(_) => { trace!("open_url: success");