2
0
Эх сурвалжийг харах

Merge pull request #23160 from groud/filesystem_favorites_fix

Make folders clicked in the filesystem dock open the selected folder
Rémi Verschelde 6 жил өмнө
parent
commit
16b0191173

+ 1 - 1
editor/filesystem_dock.cpp

@@ -412,7 +412,7 @@ void FileSystemDock::_tree_multi_selected(Object *p_item, int p_column, bool p_s
 		return;
 		return;
 
 
 	TreeItem *favorites_item = tree->get_root()->get_children();
 	TreeItem *favorites_item = tree->get_root()->get_children();
-	if (selected->get_parent() == favorites_item) {
+	if (selected->get_parent() == favorites_item && !String(selected->get_metadata(0)).ends_with("/")) {
 		// Go to the favorites if we click in the favorites and the path has changed
 		// Go to the favorites if we click in the favorites and the path has changed
 		path = "Favorites";
 		path = "Favorites";
 	} else {
 	} else {