mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-15 02:34:14 +01:00
minor fixes
This commit is contained in:
parent
94ff918881
commit
f66fcfab47
6 changed files with 62 additions and 10 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