dependency editor: set current directory to closest existing directory
(cherry picked from commit 905c431191
)
This commit is contained in:
parent
d6698c1f81
commit
14e3d478e1
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,9 @@ void DependencyEditor::_load_pressed(Object *p_item, int p_cell, int p_button) {
|
|||
|
||||
search->set_title(TTR("Search Replacement For:") + " " + replacing.get_file());
|
||||
|
||||
// Set directory to closest existing directory.
|
||||
search->set_current_dir(replacing.get_base_dir());
|
||||
|
||||
search->clear_filters();
|
||||
List<String> ext;
|
||||
ResourceLoader::get_recognized_extensions_for_type(ti->get_metadata(0), &ext);
|
||||
|
|
Loading…
Reference in a new issue