DiskCacheLoadState can be null

This commit is contained in:
gdk 2022-12-20 23:13:24 -03:00
parent 3fe3753b0b
commit aa26cc50ec
2 changed files with 2 additions and 2 deletions

View file

@ -946,7 +946,7 @@ namespace Ryujinx.Ava
if (_keyboardInterface.GetKeyboardStateSnapshot().IsPressed(Key.Delete) && _parent.WindowState != WindowState.FullScreen)
{
Device.Application.DiskCacheLoadState.Cancel();
Device.Application.DiskCacheLoadState?.Cancel();
}
});
}

View file

@ -584,7 +584,7 @@ namespace Ryujinx.Ui
{
if (!ParentWindow.State.HasFlag(WindowState.Fullscreen))
{
Device.Application.DiskCacheLoadState.Cancel();
Device.Application.DiskCacheLoadState?.Cancel();
}
}
});