mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-03 19:38:57 +02:00
Null-conditional assignments, continued
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user