mirror of
https://github.com/godotengine/godot.git
synced 2025-03-13 23:41:08 +08:00
AssetLibrary when the download size is unknown:
hidden progress bar added in the description the downloaded bytes Fixes #35267
This commit is contained in:
parent
f6a02b881a
commit
29daba5b0c
@ -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())));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user