mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:47:22 +01:00
why did I start writing this plugin
This commit is contained in:
parent
61b178e2c0
commit
c7439ac769
7 changed files with 53 additions and 39 deletions
|
|
@ -50,7 +50,7 @@ public class DownloadUi : Window, IDisposable
|
|||
|
||||
var basePosition = ImGui.GetWindowPos() + ImGui.GetWindowContentRegionMin();
|
||||
|
||||
if (_apiController.IsUploading)
|
||||
if (_apiController.CurrentUploads.Any())
|
||||
{
|
||||
var doneUploads = _apiController.CurrentUploads.Count(c => c.Value.Item1 == c.Value.Item2);
|
||||
var totalUploads = _apiController.CurrentUploads.Keys.Count;
|
||||
|
|
@ -67,9 +67,9 @@ public class DownloadUi : Window, IDisposable
|
|||
UiShared.Color(255, 255, 255, 255), UiShared.Color(0, 0, 0, 255), 2);
|
||||
}
|
||||
|
||||
if (_apiController.IsDownloading)
|
||||
if (_apiController.CurrentDownloads.Any())
|
||||
{
|
||||
var multBase = _apiController.IsDownloading ? 0 : 2;
|
||||
var multBase = _apiController.CurrentUploads.Any() ? 0 : 2;
|
||||
var doneDownloads = _apiController.CurrentDownloads.Count(c => c.Value.Item1 == c.Value.Item2);
|
||||
var totalDownloads = _apiController.CurrentDownloads.Keys.Count;
|
||||
var totalDownloaded = _apiController.CurrentDownloads.Sum(c => c.Value.Item1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue