fixed show-in-explorer functionality

This commit is contained in:
Dmitry
2022-08-06 18:38:17 +03:00
parent 1678f1372e
commit 34df077c74
+3 -1
View File
@@ -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 {