1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Merge pull request #113711 from dinesh1160/tagname-single-space-fix

Fix project tags check for empty strings
This commit is contained in:
Rémi Verschelde
2025-12-09 17:17:28 +01:00

View File

@@ -1068,7 +1068,7 @@ void ProjectManager::_apply_project_tags() {
void ProjectManager::_set_new_tag_name(const String p_name) {
create_tag_dialog->get_ok_button()->set_disabled(true);
if (p_name.is_empty()) {
if (p_name.strip_edges().is_empty()) {
tag_error->set_text(TTRC("Tag name can't be empty."));
return;
}