Null-conditional assignments, continued

This commit is contained in:
KeatonTheBot
2025-11-23 13:48:20 -06:00
parent 99c2e672c3
commit 50b00e3827
4 changed files with 5 additions and 16 deletions
@@ -69,10 +69,8 @@ namespace Ryujinx.Ava.UI.Views.Input
if (_changeSlider != -1.0f && _changeSlider != (float)check.Value)
{
if (DataContext is ControllerInputViewModel viewModel)
{
viewModel.ParentModel.IsModified = true;
}
var viewModel = (DataContext as ControllerInputViewModel);
viewModel?.ParentModel.IsModified = true;
_changeSlider = (float)check.Value;
}