Skip to content

Commit 34df077

Browse files
committed
fixed show-in-explorer functionality
1 parent 1678f13 commit 34df077

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

editor/src/asset/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ impl ContextMenu {
154154
if message.destination() == self.delete {
155155
Log::verify(std::fs::remove_file(&item.path))
156156
} else if message.destination() == self.show_in_explorer {
157-
show_in_explorer(&item.path)
157+
if let Ok(canonical_path) = item.path.canonicalize() {
158+
show_in_explorer(&canonical_path)
159+
}
158160
} else if message.destination() == self.open {
159161
open_in_explorer(&item.path)
160162
} else if message.destination() == self.copy_path {

0 commit comments

Comments
 (0)