use thread properly lol

This commit is contained in:
SpikeHD 2022-07-12 17:15:32 -07:00
parent 33c67eef06
commit 0ec8782f48

View File

@ -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();
});
}