mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:47:22 +01:00
minor fixes
This commit is contained in:
parent
a2f88124d7
commit
4a0dce0e44
6 changed files with 51 additions and 8 deletions
|
|
@ -101,7 +101,7 @@ public class DownloadUi : Window, IDisposable
|
|||
|
||||
if (_apiController.CurrentDownloads.Any())
|
||||
{
|
||||
var currentDownloads = _apiController.CurrentDownloads.SelectMany(k => k.Value).ToList();
|
||||
var currentDownloads = _apiController.CurrentDownloads.Where(d => d.Value != null && d.Value.Any()).ToList().SelectMany(k => k.Value).ToList();
|
||||
var multBase = currentDownloads.Any() ? 0 : 2;
|
||||
var doneDownloads = currentDownloads.Count(c => c.IsTransferred);
|
||||
var totalDownloads = currentDownloads.Count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue