From 34df077c7448ef99fbbdbef281dbbe5562b06398 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 6 Aug 2022 18:38:17 +0300 Subject: [PATCH] fixed show-in-explorer functionality --- editor/src/asset/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/src/asset/mod.rs b/editor/src/asset/mod.rs index bbce378d5..fbac45119 100644 --- a/editor/src/asset/mod.rs +++ b/editor/src/asset/mod.rs @@ -154,7 +154,9 @@ impl ContextMenu { if message.destination() == self.delete { Log::verify(std::fs::remove_file(&item.path)) } else if message.destination() == self.show_in_explorer { - show_in_explorer(&item.path) + if let Ok(canonical_path) = item.path.canonicalize() { + show_in_explorer(&canonical_path) + } } else if message.destination() == self.open { open_in_explorer(&item.path) } else if message.destination() == self.copy_path {