fix: open folder freeze issue

This commit is contained in:
LynithDev 2026-10-10 01:15:59 +02:00
parent 76e4cac6f4
commit 011c4416b1

View file

@ -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) {
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) {