mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
Merge pull request #34656 from volzhs/keep-selected-dir
Show selected directory in split mode when selecting a file
This commit is contained in:
commit
f3f6268ee7
@ -128,6 +128,11 @@ bool FileSystemDock::_create_tree(TreeItem *p_parent, EditorFileSystemDirectory
|
||||
udata.push_back(file_item);
|
||||
EditorResourcePreview::get_singleton()->queue_resource_preview(file_metadata, this, "_tree_thumbnail_done", udata);
|
||||
}
|
||||
} else if (display_mode == DISPLAY_MODE_SPLIT) {
|
||||
if (lpath.get_base_dir() == path.get_base_dir()) {
|
||||
subdirectory_item->select(0);
|
||||
subdirectory_item->set_as_cursor(0);
|
||||
}
|
||||
}
|
||||
|
||||
if (searched_string.length() > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user