File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,11 @@ void reveal_in_explorer(const std::filesystem::path& path) {
26
26
#if defined __APPLE__
27
27
RevealFile (path);
28
28
#else
29
+ if (std::filesystem::exists (path)) {
29
30
#if defined __linux__
30
31
std::string command = " xdg-open \" " + path.string () + " \" " ;
31
32
launch_process (command);
32
-
33
33
#elif defined _WIN32
34
- // do not surround the paths in quotes, it will not work
35
- #endif
36
- if (std::filesystem::exists (path)) {
37
34
38
35
PIDLIST_ABSOLUTE pidl;
39
36
SFGAOF attributes;
@@ -50,9 +47,10 @@ void reveal_in_explorer(const std::filesystem::path& path) {
50
47
}
51
48
}
52
49
else {
53
- wxMessageBox (" The project at " + path.string () + " could not be found." , " Cannot Reveal Project " , wxOK | wxICON_ERROR);
50
+ wxMessageBox (" The item at " + path.string () + " could not be found." , " Cannot Reveal Item " , wxOK | wxICON_ERROR);
54
51
}
55
52
#endif
53
+ #endif
56
54
}
57
55
58
56
long wxListCtrl_get_selected (wxListCtrl* listCtrl) {
You can’t perform that action at this time.
0 commit comments