Merge pull request #78403 from AThousandShips/create_size_fix

[4.0] Fix saving size in `CreateDialog`
This commit is contained in:
Rémi Verschelde 2023-06-19 16:48:18 +02:00 committed by GitHub
commit 4eefe8a40e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -457,7 +457,7 @@ void CreateDialog::_notification(int p_what) {
search_box->call_deferred(SNAME("grab_focus")); // still not visible
search_box->select_all();
} else {
EditorSettings::get_singleton()->get_project_metadata("dialog_bounds", "create_new_node", Rect2(get_position(), get_size()));
EditorSettings::get_singleton()->set_project_metadata("dialog_bounds", "create_new_node", Rect2(get_position(), get_size()));
}
} break;