mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-03-15 04:14:47 +00:00
misc: chore: this isn't even bound to a XAML element, why was this an async void
This commit is contained in:
parent
c5603d4c36
commit
e8e1dc6619
1 changed files with 3 additions and 3 deletions
|
@ -264,7 +264,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
Logger.Error?.Print(LogClass.Application, $"Couldn't get valid amiibo data: {exception}");
|
||||
|
||||
// Neither local or remote files are valid JSON, close window.
|
||||
ShowInfoDialog();
|
||||
await ShowInfoDialog();
|
||||
Close();
|
||||
}
|
||||
else if (!remoteIsValid)
|
||||
|
@ -273,7 +273,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
|
||||
// Only the local file is valid, the local one should be used
|
||||
// but the user should be warned.
|
||||
ShowInfoDialog();
|
||||
await ShowInfoDialog();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -525,7 +525,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
AmiiboImage = bitmap;
|
||||
}
|
||||
|
||||
private static async void ShowInfoDialog()
|
||||
private static async Task ShowInfoDialog()
|
||||
{
|
||||
await ContentDialogHelper.CreateInfoDialog(LocaleManager.Instance[LocaleKeys.DialogAmiiboApiTitle],
|
||||
LocaleManager.Instance[LocaleKeys.DialogAmiiboApiConnectErrorMessage],
|
||||
|
|
Loading…
Add table
Reference in a new issue