Skip to content

Commit

Permalink
don't show progress of icons.zip download
Browse files Browse the repository at this point in the history
  • Loading branch information
foglio1024 committed Jun 3, 2024
1 parent b5d6f1c commit c5518c6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions TCC.Core/Update/IconsUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,13 @@ private async Task DownloadArchive()

c.DownloadProgressChanged += (read, total) =>
{
if (total == -1) total = 71000000;
//if (total == -1) total = 71000000;
var perc = read * 100 / (double)total;
if (_n == null) return;
_n.Progress = perc;
_n.Message =
$"Downloading icons...\n({read / (1024 * 1024D):N1}/{total / (1024 * 1024D):N1}MB)";
_n.Message = total != -1 ?
$"Downloading icons...\n({read / (1024 * 1024D):N1}/{total / (1024 * 1024D):N1}MB)"
: $"Downloading icons...\n({read / (1024 * 1024D):N1}MB)";
};
c.DownloadFileCompleted += async (success) =>
{
Expand Down

0 comments on commit c5518c6

Please sign in to comment.