mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 14:13:10 +00:00
Merge pull request #23122 from Alien1993/enhance_folder_creation_error_message
Enhanced error message on folder creation with invalid chars on Windows
This commit is contained in:
commit
35450e56bd
@ -1217,7 +1217,8 @@ void FileSystemDock::_make_dir_confirm() {
|
||||
if (dir_name.length() == 0) {
|
||||
EditorNode::get_singleton()->show_warning(TTR("No name provided"));
|
||||
return;
|
||||
} else if (dir_name.find("/") != -1 || dir_name.find("\\") != -1 || dir_name.find(":") != -1 || dir_name.ends_with(".") || dir_name.ends_with(" ")) {
|
||||
} else if (dir_name.find("/") != -1 || dir_name.find("\\") != -1 || dir_name.find(":") != -1 || dir_name.find("*") != -1 ||
|
||||
dir_name.find("|") != -1 || dir_name.find(">") != -1 || dir_name.ends_with(".") || dir_name.ends_with(" ")) {
|
||||
EditorNode::get_singleton()->show_warning(TTR("Provided name contains invalid characters"));
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user