From 0ec8782f4884f7418bad3e6c47491ff97202b525 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Tue, 12 Jul 2022 17:15:32 -0700 Subject: [PATCH] use thread properly lol --- src-tauri/src/system_helpers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/system_helpers.rs b/src-tauri/src/system_helpers.rs index b316fca..e06b8bf 100644 --- a/src-tauri/src/system_helpers.rs +++ b/src-tauri/src/system_helpers.rs @@ -5,7 +5,7 @@ use crate::file_helpers; #[tauri::command] pub fn run_program(path: String) { // Open in new thread to prevent blocking. - thread::spawn(move || { + std::thread::spawn(move || { open::that(&path).unwrap(); }); }