mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-19 13:37:04 +00:00
misc: chore: Fix numerous NullReferenceExceptions, InvalidOperationExceptions
This commit is contained in:
parent
9b6b9146e2
commit
d0abbc6da3
90 changed files with 667 additions and 533 deletions
|
|
@ -111,7 +111,7 @@ namespace Ryujinx.Ava.UI.Controls
|
|||
viewModel.VirtualFileSystem,
|
||||
viewModel.SelectedApplication.IdString,
|
||||
viewModel.SelectedApplication.Name,
|
||||
viewModel.SelectedApplication.Path).ShowDialog(viewModel.TopLevel as Window);
|
||||
viewModel.SelectedApplication.Path).ShowDialog((Window)viewModel.TopLevel);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -396,9 +396,12 @@ namespace Ryujinx.Ava.UI.Controls
|
|||
viewModel.SelectedApplication.Name);
|
||||
|
||||
var iconFile = await result[0].CreateFileAsync(selectedApp.IdString + ".png");
|
||||
await using var fileStream = await iconFile.OpenWriteAsync();
|
||||
if (iconFile != null)
|
||||
{
|
||||
await using var fileStream = await iconFile.OpenWriteAsync();
|
||||
|
||||
fileStream.Write(selectedApp.Icon);
|
||||
fileStream.Write(selectedApp.Icon);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue