Merge pull request #27741 from danielkulas/path

Fix "Show in File Manager" option
This commit is contained in:
Rémi Verschelde 2019-04-07 12:01:51 +02:00 committed by GitHub
commit 4ff505426b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1429,6 +1429,10 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> p_selected)
case FILE_SHOW_IN_EXPLORER: {
// Show the file / folder in the OS explorer
String fpath = path;
if (path == "Favorites") {
fpath = p_selected[0];
}
if (!fpath.ends_with("/")) {
fpath = fpath.get_base_dir();
}