mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-15 07:00:32 +00:00
Move Task to caller
This commit is contained in:
parent
8051e3710b
commit
bbe78d96bd
1 changed files with 9 additions and 11 deletions
|
@ -1363,7 +1363,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
if (prevUserId != AccountManager.LastOpenedUser.UserId)
|
||||
{
|
||||
// current user changed, so refresh application metadata
|
||||
RefreshApplicationsMetadata();
|
||||
_ = Task.Run(() => RefreshApplicationsMetadata());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1374,7 +1374,6 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
|
||||
private async void RefreshApplicationsMetadata()
|
||||
{
|
||||
await Task.Run(() => {
|
||||
foreach (var app in _applications)
|
||||
{
|
||||
var metadata = ApplicationLibrary.LoadAndSaveMetaData(AccountManager.LastOpenedUser.UserId.ToLibHacFsUid(), app.TitleId);
|
||||
|
@ -1383,7 +1382,6 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
app.TimePlayedNum = metadata.TimePlayed;
|
||||
app.TimePlayed = ApplicationLibrary.ConvertSecondsToFormattedString(metadata.TimePlayed);
|
||||
}
|
||||
});
|
||||
|
||||
RefreshView();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue