Skip to content

Commit e321faa

Browse files
committed
Fix Add Metadata dialog not focusing name field by default
1 parent 533c616 commit e321faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/add_metadata_dialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ AddMetadataDialog::AddMetadataDialog() {
6464
}
6565

6666
void AddMetadataDialog::_complete_init(const StringName &p_title) {
67-
add_meta_name->grab_focus();
6867
add_meta_name->set_text("");
6968
validation_panel->update();
7069

@@ -90,6 +89,7 @@ void AddMetadataDialog::open(const StringName p_title, List<StringName> &p_exist
9089
this->_existing_metas = p_existing_metas;
9190
_complete_init(p_title);
9291
popup_centered();
92+
add_meta_name->grab_focus();
9393
}
9494

9595
StringName AddMetadataDialog::get_meta_name() {

0 commit comments

Comments
 (0)