fix: open folder freeze issue
This commit is contained in:
parent
76e4cac6f4
commit
011c4416b1
1 changed files with 6 additions and 3 deletions
|
|
@ -131,9 +131,12 @@ fn open_target(target: &str) {
|
|||
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
fn open_target(target: &str) {
|
||||
if let Err(err) = open::that_detached(target) {
|
||||
tracing::warn!("failed to open {target}: {err}");
|
||||
}
|
||||
let target = target.to_owned();
|
||||
std::thread::spawn(move || {
|
||||
if let Err(err) = open::that_detached(&target) {
|
||||
tracing::warn!("failed to open {target}: {err}");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
pub fn copy_image_to_clipboard(path: std::path::PathBuf) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue