Skip to content

Commit

Permalink
Clear download progress after completed.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisxvin committed Feb 13, 2023
1 parent 046f2c5 commit bb73552
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Models/MediaModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ void IDownloadItem.OnDownloadFileCompleted(object? sender, AsyncCompletedEventAr
{
// todo: test e.Cancelled, e.Error
Status = DownloadStatus.Completed;
Progress = 0;
}

void IDownloadItem.OnDownloadProgressChanged(object? sender, Downloader.DownloadProgressChangedEventArgs e)
{
((IDownloadItem)this).Progress = (int)e.ProgressPercentage;
Progress = (int)e.ProgressPercentage;
}

void IDownloadItem.OnDownloadStarted(object? sender, Downloader.DownloadStartedEventArgs e)
Expand Down

0 comments on commit bb73552

Please sign in to comment.