1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00

Fix "Show in File Manager" option

(cherry picked from commit 22b861ad97)
This commit is contained in:
Daniel Kulas
2019-04-06 22:49:32 +02:00
committed by Rémi Verschelde
parent 456eb53439
commit c6fa282fbb

View File

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