mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 09:21:15 +01:00
misc: chore: Fix possible System.NullReferenceExceptions
This commit is contained in:
1 parent
19013d360a
commit
3c644a712d
8 files changed
+26
-27
No files matched your search
@@ -2251,7 +2251,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||
switch (operationOutcome)
|
||||
{
|
||||
case XCIFileTrimmer.OperationOutcome.Successful:
|
||||
if (Application.Current.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
||||
if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
||||
{
|
||||
if (desktop.MainWindow is MainWindow mainWindow)
|
||||
mainWindow.LoadApplications();
|
||||
|
||||
Reference in new issue
Block a user