mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix for Issue#18457 - Folder name with trailing space on Windows
(cherry picked from commit 164dceab28)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
736e574a5e
commit
78e2e48d57
@@ -250,8 +250,10 @@ private:
|
||||
|
||||
void _create_folder() {
|
||||
|
||||
if (project_name->get_text() == "" || created_folder_path != "")
|
||||
if (project_name->get_text() == "" || created_folder_path != "" || project_name->get_text().ends_with(".") || project_name->get_text().ends_with(" ")) {
|
||||
set_message(TTR("Invalid Project Name."), MESSAGE_WARNING);
|
||||
return;
|
||||
}
|
||||
|
||||
DirAccess *d = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
|
||||
if (d->change_dir(project_path->get_text()) == OK) {
|
||||
|
||||
Reference in New Issue
Block a user