From 29daba5b0cd52ea2a0a684ab566f4b6f1baafdb8 Mon Sep 17 00:00:00 2001 From: dankan1890 Date: Sat, 18 Jan 2020 12:51:20 +0100 Subject: [PATCH] AssetLibrary when the download size is unknown: hidden progress bar added in the description the downloaded bytes Fixes #35267 --- editor/plugins/asset_library_editor_plugin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index bdef108ef2d..c1f62e8342f 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -435,7 +435,10 @@ void EditorAssetLibraryItemDownload::_notification(int p_what) { String::humanize_size(download->get_body_size()))); } else { // Total file size is unknown, so it cannot be displayed. - status->set_text(TTR("Downloading...")); + progress->set_modulate(Color(0, 0, 0, 0)); + status->set_text(vformat( + TTR("Downloading...") + " (%s)", + String::humanize_size(download->get_downloaded_bytes()))); } }