mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 11:06:24 +02:00
move version checking into a single method to unify updater logic across the app
This commit is contained in:
parent
d0c055ccb8
commit
787a14ed2b
4 changed files with 19 additions and 11 deletions
|
@ -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.CheckGitHubVersionAsync()).TryGet(out (Version Current, Version Incoming) versions))
|
||||
if ((await Updater.CheckForUpdateAsync()).TryGet(out (Version Current, Version Incoming) versions))
|
||||
{
|
||||
Dispatcher.UIThread.Post(() => RyujinxApp.MainWindow.ViewModel.UpdateAvailable = versions.Current < versions.Incoming);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue