mirror of
https://github.com/StarCitizenToolBox/app.git
synced 2026-02-06 15:10:20 +00:00
feat: downloader update
This commit is contained in:
@@ -178,11 +178,11 @@ class DownloadManager extends _$DownloadManager {
|
||||
return await downloader_api.downloaderGetAllTasks();
|
||||
}
|
||||
|
||||
Future<bool> isNameInTask(String name) async {
|
||||
Future<bool> isNameInTask(String name, {bool downloadingOnly = true}) async {
|
||||
if (!state.isInitialized) {
|
||||
return false;
|
||||
}
|
||||
return await downloader_api.downloaderIsNameInTask(name: name);
|
||||
return await downloader_api.downloaderIsNameInTask(name: name, downloadingOnly: downloadingOnly);
|
||||
}
|
||||
|
||||
Future<void> pauseAll() async {
|
||||
|
||||
@@ -41,7 +41,7 @@ final class DownloadManagerProvider
|
||||
}
|
||||
}
|
||||
|
||||
String _$downloadManagerHash() => r'55c92224a5eb6bb0f84f0a97fd0585b94f61f711';
|
||||
String _$downloadManagerHash() => r'feed17eda191d6b618b30e01afb75b7245fe0a83';
|
||||
|
||||
abstract class _$DownloadManager extends $Notifier<DownloadManagerState> {
|
||||
DownloadManagerState build();
|
||||
|
||||
Reference in New Issue
Block a user