1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-11-23 08:42:47 +01:00
TweetDuck/Updates/UpdateDownloadStatus.cs

17 lines
505 B
C#

namespace TweetDuck.Updates{
public enum UpdateDownloadStatus{
None = 0,
InProgress,
Canceled,
AssetMissing,
Failed,
Done
}
public static class UpdateDownloadStatusExtensions{
public static bool IsFinished(this UpdateDownloadStatus status, bool canRetry){
return status == UpdateDownloadStatus.AssetMissing || status == UpdateDownloadStatus.Done || (status == UpdateDownloadStatus.Failed && !canRetry);
}
}
}