mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-13 14:19:12 +00:00
Fix review comments
This commit is contained in:
parent
87d19fba43
commit
ede761cc99
1 changed files with 9 additions and 7 deletions
|
@ -1480,12 +1480,12 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
|
|
||||||
async void Action()
|
async void Action()
|
||||||
{
|
{
|
||||||
var loadSuccessful = false;
|
bool isApplicationLoaded = false;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
loadSuccessful = await AppHost.LoadGuestApplication();
|
isApplicationLoaded = await AppHost.LoadGuestApplication();
|
||||||
}
|
}
|
||||||
catch (HorizonResultException hex)
|
catch (HorizonResultException ex)
|
||||||
{
|
{
|
||||||
// Apphost Cleanup
|
// Apphost Cleanup
|
||||||
AppHost = null;
|
AppHost = null;
|
||||||
|
@ -1493,14 +1493,13 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
|
|
||||||
await Dispatcher.UIThread.InvokeAsync(async () =>
|
await Dispatcher.UIThread.InvokeAsync(async () =>
|
||||||
{
|
{
|
||||||
await ContentDialogHelper.CreateErrorDialog(
|
await ContentDialogHelper.CreateErrorDialog(string.Format(LocaleManager.Instance[LocaleKeys.DialogCorruptedGameError], ex.Message));
|
||||||
string.Format(LocaleManager.Instance[LocaleKeys.DialogCorruptedGameError], hex.Message));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!loadSuccessful)
|
if (!isApplicationLoaded)
|
||||||
{
|
{
|
||||||
AppHost.DisposeContext();
|
AppHost.DisposeContext();
|
||||||
AppHost = null;
|
AppHost = null;
|
||||||
|
@ -1610,7 +1609,10 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
|
|
||||||
SelectedIcon = null;
|
SelectedIcon = null;
|
||||||
|
|
||||||
Dispatcher.UIThread.InvokeAsync(() => { Title = $"Ryujinx {Program.Version}"; });
|
Dispatcher.UIThread.InvokeAsync(() =>
|
||||||
|
{
|
||||||
|
Title = $"Ryujinx {Program.Version}";
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ToggleFullscreen()
|
public void ToggleFullscreen()
|
||||||
|
|
Loading…
Reference in a new issue