mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2024-11-23 11:59:48 +00:00
use thread properly lol
This commit is contained in:
parent
33c67eef06
commit
0ec8782f48
@ -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();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user