mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 11:32:13 +00:00
Fix Add Metadata dialog not focusing name field by default
This commit is contained in:
parent
533c616cb8
commit
e321faa59b
@ -64,7 +64,6 @@ AddMetadataDialog::AddMetadataDialog() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AddMetadataDialog::_complete_init(const StringName &p_title) {
|
void AddMetadataDialog::_complete_init(const StringName &p_title) {
|
||||||
add_meta_name->grab_focus();
|
|
||||||
add_meta_name->set_text("");
|
add_meta_name->set_text("");
|
||||||
validation_panel->update();
|
validation_panel->update();
|
||||||
|
|
||||||
@ -90,6 +89,7 @@ void AddMetadataDialog::open(const StringName p_title, List<StringName> &p_exist
|
|||||||
this->_existing_metas = p_existing_metas;
|
this->_existing_metas = p_existing_metas;
|
||||||
_complete_init(p_title);
|
_complete_init(p_title);
|
||||||
popup_centered();
|
popup_centered();
|
||||||
|
add_meta_name->grab_focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
StringName AddMetadataDialog::get_meta_name() {
|
StringName AddMetadataDialog::get_meta_name() {
|
||||||
|
Loading…
Reference in New Issue
Block a user