mirror of
https://github.com/Stone-Red-Code/AlwaysUpToDate.git
synced 2026-09-04 08:56:04 +02:00
Add UpdateStarted event to signal when update download begins
This commit is contained in:
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user