mirror of
https://github.com/StarCitizenToolBox/app.git
synced 2026-02-11 17:50:23 +00:00
fix: download status
This commit is contained in:
@@ -234,4 +234,19 @@ class DownloadTaskInfo {
|
||||
}
|
||||
|
||||
/// Download task status
|
||||
enum DownloadTaskStatus { initializing, live, paused, error, finished }
|
||||
enum DownloadTaskStatus {
|
||||
/// Checking/verifying existing files
|
||||
checking,
|
||||
|
||||
/// Actively downloading
|
||||
live,
|
||||
|
||||
/// Paused
|
||||
paused,
|
||||
|
||||
/// Error occurred
|
||||
error,
|
||||
|
||||
/// Download completed
|
||||
finished,
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ final class DownloadManagerProvider
|
||||
}
|
||||
}
|
||||
|
||||
String _$downloadManagerHash() => r'95a8105bb544c8a1996f321e1d0258c41e18effa';
|
||||
String _$downloadManagerHash() => r'f12d3fb1d7c03fdfccff7d07903218f38a860437';
|
||||
|
||||
abstract class _$DownloadManager extends $Notifier<DownloadManagerState> {
|
||||
DownloadManagerState build();
|
||||
|
||||
@@ -131,8 +131,8 @@ class HomeDownloaderUIModel extends _$HomeDownloaderUIModel {
|
||||
switch (status) {
|
||||
case DownloadTaskStatus.live:
|
||||
return "live";
|
||||
case DownloadTaskStatus.initializing:
|
||||
return "initializing";
|
||||
case DownloadTaskStatus.checking:
|
||||
return "checking";
|
||||
case DownloadTaskStatus.paused:
|
||||
return "paused";
|
||||
case DownloadTaskStatus.error:
|
||||
@@ -191,7 +191,7 @@ class HomeDownloaderUIModel extends _$HomeDownloaderUIModel {
|
||||
case DownloadTaskStatus.live:
|
||||
activeTasks.add(task);
|
||||
break;
|
||||
case DownloadTaskStatus.initializing:
|
||||
case DownloadTaskStatus.checking:
|
||||
case DownloadTaskStatus.paused:
|
||||
waitingTasks.add(task);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user