diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2024-09-21 20:32:00 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2024-10-23 08:18:13 +0800 |
commit | e321faa59ba17dde856b1383f167d8653cc0d8d6 (patch) | |
tree | 0c39ec38567d3d88c0edc8cd5a6f514186389858 /editor/add_metadata_dialog.cpp | |
parent | 533c616cb86ff7bb940d58ffbbcc1a3eca0aa33d (diff) | |
download | redot-engine-e321faa59ba17dde856b1383f167d8653cc0d8d6.tar.gz |
Fix Add Metadata dialog not focusing name field by default
Diffstat (limited to 'editor/add_metadata_dialog.cpp')
-rw-r--r-- | editor/add_metadata_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/add_metadata_dialog.cpp b/editor/add_metadata_dialog.cpp index 0a070e37b6..66a7b820f5 100644 --- a/editor/add_metadata_dialog.cpp +++ b/editor/add_metadata_dialog.cpp @@ -64,7 +64,6 @@ AddMetadataDialog::AddMetadataDialog() { } void AddMetadataDialog::_complete_init(const StringName &p_title) { - add_meta_name->grab_focus(); add_meta_name->set_text(""); validation_panel->update(); @@ -90,6 +89,7 @@ void AddMetadataDialog::open(const StringName p_title, List<StringName> &p_exist this->_existing_metas = p_existing_metas; _complete_init(p_title); popup_centered(); + add_meta_name->grab_focus(); } StringName AddMetadataDialog::get_meta_name() { |