Skip to content

Commit

Permalink
排序优化
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai committed Feb 21, 2024
1 parent b8e1cc6 commit 0426966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Aria2Fast/Service/Aria2ApiManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ internal async Task<bool> UpdateTask()
TaskList.RemoveAt(TaskList.Count - 1);
}
}

tasks = tasks.OrderByDescending(a => a.Status == KARIA2_STATUS_WAITING).ToArray();
tasks = tasks.OrderByDescending(a => a.Status == KARIA2_STATUS_ACTIVE).ToArray();
for (int i = 0; i < tasks.Count; i++)
{
Expand Down

0 comments on commit 0426966

Please sign in to comment.