fix: task lock by unreachable torrent (#431)

This commit is contained in:
Levi authored and GitHub committed 2024-03-29 22:11:21 +08:00
1 parent bd6d6be71f
commit 56ef25065e
5 files changed
+93 -67

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ class Options {
Options({
required this.name,
required this.path,
required this.selectFiles,
this.selectFiles = const [],
this.extra,
});
+4 -2
View File
@@ -9,8 +9,10 @@ part of 'options.dart';
Options _$OptionsFromJson(Map<String, dynamic> json) => Options(
name: json['name'] as String,
path: json['path'] as String,
selectFiles:
(json['selectFiles'] as List<dynamic>).map((e) => e as int).toList(),
selectFiles: (json['selectFiles'] as List<dynamic>?)
?.map((e) => e as int)
.toList() ??
const [],
extra: json['extra'],
);