Browse Source

Fix "Show in File Manager" option

(cherry picked from commit 22b861ad9787523487c652250b42828d9991ad02)
Daniel Kulas 6 years ago
parent
commit
c6fa282fbb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      editor/filesystem_dock.cpp

+ 4 - 0
editor/filesystem_dock.cpp

@@ -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();
 			}