Skip to content

Commit

Permalink
Last-minute updater fixes
Browse files Browse the repository at this point in the history
- Fix "Up-to-date" message appearing when update is available, and vice-versa when up-to-date, when running from command line with --autoupdate or --checkupdate

- Fix incorrectly formatted "Pre-release" text in changelog
  • Loading branch information
Sparronator9999 committed Jan 8, 2025
1 parent a1df99f commit 09c1b57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion YAMDCC.Updater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private static bool BGUpdate(bool autoUpdate)
try
{
Release latest = Updater.GetLatestReleaseAsync(Utils.GetVerSuffix() != "release").GetAwaiter().GetResult();
if (latest is not null && latest.TagName == $"v{Utils.GetRevision()}")
if (latest is not null && latest.TagName != $"v{Utils.GetRevision()}")
{
Application.Run(new UpdateForm(latest, autoUpdate));
}
Expand Down
2 changes: 1 addition & 1 deletion YAMDCC.Updater/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,6 @@ This could possibly mean one of the following:
<value>&lt;div&gt;&lt;h2 style="display:inline"&gt;{0}&lt;/h2&gt;{1}&lt;/div&gt;&lt;p style="color:#444"&gt;&lt;i&gt;Published on {2} by {3}&lt;/i&gt;&lt;/p&gt;{4}</value>
</data>
<data name="PreReleaseTag" xml:space="preserve">
<value>&lt;span style=\"margin:1em;color:red\"&gt;&lt;b&gt;Pre-release&lt;/b&gt;&lt;/span&gt;</value>
<value>&lt;span style="margin:1em;color:red"&gt;&lt;b&gt;Pre-release&lt;/b&gt;&lt;/span&gt;</value>
</data>
</root>

0 comments on commit 09c1b57

Please sign in to comment.