Skip to content

Commit

Permalink
updater-related string changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Nov 11, 2024
1 parent 153453c commit 756d8da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DragonFruit.OnionFruit/Updater/VelopackUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private async Task PerformUpdateCheckInternal()
}
catch (Exception e)
{
_logger.LogError(e, "Failed to perform updater: {message}", e.Message);
_logger.LogError(e, "Failed to perform update: {message}", e.Message);
Status = OnionFruitUpdaterStatus.Failed;
}
}
Expand Down
4 changes: 2 additions & 2 deletions DragonFruit.OnionFruit/ViewModels/AboutPageTabViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ public AboutPageTabViewModel(IOnionFruitUpdater updater, ILogger<AboutPageTabVie
{
OnionFruitUpdaterStatus.Checking => "Checking for updates...",

OnionFruitUpdaterStatus.Downloading when x.Second.HasValue => $"Downloading update ({x.Second}%)",
OnionFruitUpdaterStatus.Downloading when x.Second.HasValue => $"Downloading ({x.Second}%)",
OnionFruitUpdaterStatus.Failed when x.Second.HasValue => "Update failed",

OnionFruitUpdaterStatus.Downloading => "Downloading update...",
OnionFruitUpdaterStatus.Downloading => "Downloading...",
OnionFruitUpdaterStatus.Failed => "Update check failed",

OnionFruitUpdaterStatus.UpToDate => "No updates available",
Expand Down
8 changes: 4 additions & 4 deletions DragonFruit.OnionFruit/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ private static IEnumerable<TorNodeCountry> ProcessCountries(EventPattern<IReadOn

private static string GetWindowTitle((OnionFruitUpdaterStatus Status, int? Progress) current) => current.Status switch
{
OnionFruitUpdaterStatus.Downloading when current.Progress.HasValue => $"{App.Title} - Downloading update ({current.Progress}%)",
OnionFruitUpdaterStatus.Downloading => $"{App.Title} - Downloading update",
OnionFruitUpdaterStatus.PendingRestart => $"{App.Title} - Update downloaded (pending restart)",
OnionFruitUpdaterStatus.Failed => $"{App.Title} - Update failed",
OnionFruitUpdaterStatus.Downloading when current.Progress.HasValue => $"{App.Title} - Downloading Update ({current.Progress}%)",
OnionFruitUpdaterStatus.Downloading => $"{App.Title} - Downloading Update",
OnionFruitUpdaterStatus.PendingRestart => $"{App.Title} - Update Downloaded",
OnionFruitUpdaterStatus.Failed => $"{App.Title} - Update Failed",

_ => App.Title
};
Expand Down

0 comments on commit 756d8da

Please sign in to comment.