Add UpdateStarted event to signal when update download begins

This commit is contained in:
Stone_Red
2026-02-20 20:42:25 +01:00
parent 16d2f8ced4
commit 1dd95c7b10
3 changed files with 24 additions and 0 deletions
+6
View File
@@ -11,6 +11,7 @@ internal class Program
{
updater.ProgressChanged += Updater_ProgressChanged;
updater.UpdateAvailable += Updater_UpdateAvailable;
updater.UpdateStarted += Updater_UpdateStarted;
updater.NoUpdateAvailable += Updater_NoUpdateAvailable;
updater.OnException += Updater_OnException;
updater.Start();
@@ -42,6 +43,11 @@ internal class Program
Console.WriteLine($"[{step}] {itemsProcessed}/{totalItems} {progressPercentage}%");
}
private static void Updater_UpdateStarted(string version)
{
Console.WriteLine($"Starting update to version {version}...");
}
private static void Updater_NoUpdateAvailable()
{
Console.WriteLine("You are up to date!");