mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-01-15 14:42:46 +01:00
17 lines
442 B
C#
17 lines
442 B
C#
namespace TweetLib.Core.Systems.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 is UpdateDownloadStatus.AssetMissing or UpdateDownloadStatus.Done || (status == UpdateDownloadStatus.Failed && !canRetry);
|
|
}
|
|
}
|
|
}
|