Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 33c9621

Browse files
committed
fix: check DownloadStarted
1 parent 6dea5f3 commit 33c9621

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

engine/cli/utils/download_progress.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ bool DownloadProgress::Handle(const std::string& id) {
7676
totals[it.id] = it.bytes.value_or(std::numeric_limits<uint64_t>::max());
7777
CTL_INF("Updated " << it.id << " - total: " << totals[it.id]);
7878
}
79-
if (ev.type_ == DownloadStatus::DownloadUpdated) {
79+
80+
if (ev.type_ == DownloadStatus::DownloadStarted ||
81+
ev.type_ == DownloadStatus::DownloadUpdated) {
8082
(*bars)[i].set_option(indicators::option::PrefixText{
8183
pad_string(it.id) +
8284
std::to_string(

0 commit comments

Comments
 (0)