1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-19 06:32:06 +00:00

Fix NRE on Avalonia for error applets with unknown error message (#3888)

This commit is contained in:
gdkchan 2022-11-24 05:31:00 -03:00 committed by GitHub
parent ece36b274d
commit a0c77f8d11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,14 +57,14 @@ namespace Ryujinx.Ava.Ui.Applet
bool opened = false; bool opened = false;
UserResult response = await ContentDialogHelper.ShowDeferredContentDialog(_parent, UserResult response = await ContentDialogHelper.ShowDeferredContentDialog(_parent,
title, title,
message, message,
"", "",
LocaleManager.Instance["DialogOpenSettingsWindowLabel"], LocaleManager.Instance["DialogOpenSettingsWindowLabel"],
"", "",
LocaleManager.Instance["SettingsButtonClose"], LocaleManager.Instance["SettingsButtonClose"],
(int)Symbol.Important, (int)Symbol.Important,
deferEvent, deferEvent,
async (window) => async (window) =>
{ {
@ -168,7 +168,7 @@ namespace Ryujinx.Ava.Ui.Applet
object response = await msgDialog.Run(); object response = await msgDialog.Run();
if (response != null && buttons.Length > 1 && (int)response != buttons.Length - 1) if (response != null && buttons != null && buttons.Length > 1 && (int)response != buttons.Length - 1)
{ {
showDetails = true; showDetails = true;
} }