misc: [ci skip] fix typo in comment & rename CheckForUpdateAsync

This commit is contained in:
GreemDev 2025-06-04 21:05:54 -05:00
parent 3950e8adff
commit f2aea4fb22
4 changed files with 5 additions and 5 deletions

View File

@ -88,7 +88,7 @@ namespace Ryujinx.Ava.Systems
}
}
// If build not done, assume no new update are available.
// If build not done, assume no new update is available.
if (_buildUrl is null)
{
if (showVersionUpToDate)

View File

@ -65,7 +65,7 @@ namespace Ryujinx.Ava.Systems
link.AssetName.StartsWith("ryujinx") && link.AssetName.EndsWith(_platformExt)
)?.Url;
// If build URL not found, assume no new update are available.
// If build URL not found, assume no new update is available.
if (_buildUrl is null)
{
if (showVersionUpToDate)

View File

@ -55,7 +55,7 @@ namespace Ryujinx.Ava.Systems
private static string _changelogUrlFormat = null;
public static async Task<Optional<(Version, Version)>> CheckForUpdateAsync(bool showVersionUpToDate = false)
public static async Task<Optional<(Version, Version)>> CheckVersionAsync(bool showVersionUpToDate = false)
{
Optional<(Version, Version)> versionTuple;
@ -83,7 +83,7 @@ namespace Ryujinx.Ava.Systems
_running = true;
Optional<(Version, Version)> versionTuple = await CheckForUpdateAsync(showVersionUpToDate);
Optional<(Version, Version)> versionTuple = await CheckVersionAsync(showVersionUpToDate);
if (_running is false || !versionTuple.HasValue)
return;

View File

@ -419,7 +419,7 @@ namespace Ryujinx.Ava.UI.Windows
.Catch(task => Logger.Error?.Print(LogClass.Application, $"Updater Error: {task.Exception}"));
break;
case UpdaterType.CheckInBackground:
if ((await Updater.CheckForUpdateAsync()).TryGet(out (Version Current, Version Incoming) versions))
if ((await Updater.CheckVersionAsync()).TryGet(out (Version Current, Version Incoming) versions))
{
Dispatcher.UIThread.Post(() => RyujinxApp.MainWindow.ViewModel.UpdateAvailable = versions.Current < versions.Incoming);
}