We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab8886b + 9995ec2 commit c89c741Copy full SHA for c89c741
lib/Api/event_handler_api.dart
@@ -101,6 +101,11 @@ class EventHandlerApi {
101
try {
102
TorrentModel torrentModel = TorrentModel.fromJson(newTorrentList[hash]);
103
torrentModel.tags = torrentModel.tags.toSet().toList();
104
+ if (torrentModel.status.contains('stopped') &&
105
+ torrentModel.status.contains('downloading')) {
106
+ torrentModel.status
107
+ .removeWhere((element) => element.contains('downloading'));
108
+ }
109
torrentList.add(torrentModel);
110
} catch (e) {
111
print(e.toString());
0 commit comments