don't do mac stuff on non-macs! (#804)

This commit is contained in:
Brendan Allan
2023-05-08 17:26:55 +08:00
committed by GitHub
parent 0c4bb2e290
commit 0635ff3d91

View File

@@ -99,6 +99,7 @@ pub async fn open_file_path_with(
return Err(())
};
#[cfg(target_os = "macos")]
unsafe {
sd_desktop_macos::open_file_path_with(
&path.to_str().unwrap().into(),