From 8080b2fd11e8c8b4d3b4b51035c9e5399e985b86 Mon Sep 17 00:00:00 2001
From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com>
Date: Fri, 20 Feb 2026 20:57:53 +0100
Subject: [PATCH] Change UpdaterChangedHandler parameter order to (step,
itemsProcessed, totalItems)
---
AlwaysUpToDate.Test/Program.cs | 2 +-
AlwaysUpToDate/DownloadManager.cs | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/AlwaysUpToDate.Test/Program.cs b/AlwaysUpToDate.Test/Program.cs
index 4a6c43d..b183bf1 100644
--- a/AlwaysUpToDate.Test/Program.cs
+++ b/AlwaysUpToDate.Test/Program.cs
@@ -38,7 +38,7 @@ internal class Program
}
}
- private static void Updater_ProgressChanged(UpdateStep step, long? totalItems, long itemsProcessed, double? progressPercentage)
+ private static void Updater_ProgressChanged(UpdateStep step, long itemsProcessed, long? totalItems, double? progressPercentage)
{
Console.WriteLine($"[{step}] {itemsProcessed}/{totalItems} {progressPercentage}%");
}
diff --git a/AlwaysUpToDate/DownloadManager.cs b/AlwaysUpToDate/DownloadManager.cs
index 5ffadec..8cdbc3f 100644
--- a/AlwaysUpToDate/DownloadManager.cs
+++ b/AlwaysUpToDate/DownloadManager.cs
@@ -26,7 +26,7 @@ namespace AlwaysUpToDate
/// The total number of items to process in this step, or if unknown.
/// The number of items processed so far in this step.
/// The progress percentage (0–100), or if is unknown.
- public delegate void UpdaterChangedHandler(UpdateStep step, long? totalItems, long itemsProcessed, double? progressPercentage);
+ public delegate void UpdaterChangedHandler(UpdateStep step, long itemsProcessed, long? totalItems, double? progressPercentage);
///
/// Occurs when progress is made during any phase of the update process.
@@ -450,7 +450,7 @@ namespace AlwaysUpToDate
progressPercentage = Math.Round((double)totalProcessed / totalSize.Value * 100, 2);
}
- ProgressChanged?.Invoke(step, totalSize, totalProcessed, progressPercentage);
+ ProgressChanged?.Invoke(step, totalProcessed, totalSize, progressPercentage);
}
private void ThrowIfDisposed()