mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 17:20:18 +00:00
Load saves on UIThread
This commit is contained in:
parent
e422766413
commit
9195477e0b
1 changed files with 28 additions and 24 deletions
|
@ -1,5 +1,6 @@
|
|||
using Avalonia.Controls;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Threading;
|
||||
using FluentAvalonia.UI.Controls;
|
||||
using FluentAvalonia.UI.Navigation;
|
||||
using LibHac;
|
||||
|
@ -59,6 +60,8 @@ namespace Ryujinx.Ava.UI.Views.User
|
|||
}
|
||||
|
||||
public void LoadSaves()
|
||||
{
|
||||
Dispatcher.UIThread.Post((() =>
|
||||
{
|
||||
ViewModel.Saves.Clear();
|
||||
var saveDataFilter = SaveDataFilter.Make(programId: default, saveType: SaveDataType.Account,
|
||||
|
@ -92,6 +95,7 @@ namespace Ryujinx.Ava.UI.Views.User
|
|||
ViewModel.Sort();
|
||||
}
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
private void GoBack(object sender, RoutedEventArgs e)
|
||||
|
|
Loading…
Reference in a new issue