mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Fix false warning folder already exists
This commit is contained in:
parent
ac591d9904
commit
6edbbf3a94
@ -1432,7 +1432,7 @@ void FileSystemDock::_make_dir_confirm() {
|
||||
Error err = da->change_dir(directory);
|
||||
ERR_FAIL_COND_MSG(err != OK, "Cannot open directory '" + directory + "'.");
|
||||
|
||||
if (da->dir_exists(directory)) {
|
||||
if (da->dir_exists(dir_name)) {
|
||||
EditorNode::get_singleton()->show_warning(TTR("Could not create folder. File with that name already exists."));
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user