Merge pull request #74626 from KoBeWi/one_line_that_changes_the_fate

Select the newly duplicated file
This commit is contained in:
Yuri Sizov 2023-03-16 12:17:40 +01:00 committed by GitHub
commit 1182b6eaaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1286,6 +1286,7 @@ void FileSystemDock::_try_duplicate_item(const FileOrFolder &p_item, const Strin
EditorNode::get_singleton()->add_io_error(TTR("Cannot move a folder into itself.") + "\n" + old_path + "\n"); EditorNode::get_singleton()->add_io_error(TTR("Cannot move a folder into itself.") + "\n" + old_path + "\n");
return; return;
} }
const_cast<FileSystemDock *>(this)->path = new_path;
Ref<DirAccess> da = DirAccess::create(DirAccess::ACCESS_RESOURCES); Ref<DirAccess> da = DirAccess::create(DirAccess::ACCESS_RESOURCES);