1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

ProjectManager: Update project list placeholder when project created or imported.

This commit is contained in:
Lars Pettersson
2024-12-27 23:31:50 +01:00
parent 89001f91d2
commit c5b61d4d82

View File

@@ -715,9 +715,12 @@ void ProjectManager::_on_project_created(const String &dir, bool edit) {
project_list->add_project(dir, false);
project_list->save_config();
search_box->clear();
int i = project_list->refresh_project(dir);
project_list->select_project(i);
project_list->ensure_project_visible(i);
_update_project_buttons();
_update_list_placeholder();
if (edit) {
_open_selected_projects_ask();