summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-22 07:29:21 +0100
committerGitHub <noreply@github.com>2020-01-22 07:29:21 +0100
commit7c632968b2d62dec75228908bc701a5aca4a7b0d (patch)
tree51c0d827cdbe1a205c8dad2fd930cc0d186e1970
parent5127afa812f80c02e6f9fada854d46482daafca4 (diff)
parent56aae0e8bcb0f91931ae3d48b74e7dd42d87861a (diff)
Merge pull request #35419 from Calinou/project-manager-loading-placeholder
Use a loading placeholder for project icons in the project manager
-rw-r--r--editor/project_manager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index 9bbb9bd38c..30e31cb530 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -1313,7 +1313,9 @@ void ProjectList::create_project_item_control(int p_index) {
hb->set_is_favorite(item.favorite);
TextureRect *tf = memnew(TextureRect);
- tf->set_texture(get_icon("DefaultProjectIcon", "EditorIcons"));
+ // The project icon may not be loaded by the time the control is displayed,
+ // so use a loading placeholder.
+ tf->set_texture(get_icon("ProjectIconLoading", "EditorIcons"));
if (item.missing) {
tf->set_modulate(Color(1, 1, 1, 0.5));
}