Null operators
This commit is contained in:
parent
2e48ef62fa
commit
2d399b6d26
1 changed files with 9 additions and 31 deletions
|
@ -169,9 +169,9 @@ namespace Ryujinx.Ava.UI.ViewModels.Settings
|
||||||
private readonly SettingsAudioViewModel _audioViewModel;
|
private readonly SettingsAudioViewModel _audioViewModel;
|
||||||
private readonly SettingsCpuViewModel _cpuViewModel;
|
private readonly SettingsCpuViewModel _cpuViewModel;
|
||||||
private readonly SettingsGraphicsViewModel _graphicsViewModel;
|
private readonly SettingsGraphicsViewModel _graphicsViewModel;
|
||||||
private readonly SettingsLoggingViewModel _loggingViewModel;
|
|
||||||
private readonly SettingsInputViewModel _inputViewModel;
|
|
||||||
private readonly SettingsHotkeysViewModel _hotkeysViewModel;
|
private readonly SettingsHotkeysViewModel _hotkeysViewModel;
|
||||||
|
private readonly SettingsInputViewModel _inputViewModel;
|
||||||
|
private readonly SettingsLoggingViewModel _loggingViewModel;
|
||||||
|
|
||||||
public DateTimeOffset CurrentDate { get; set; }
|
public DateTimeOffset CurrentDate { get; set; }
|
||||||
public TimeSpan CurrentTime { get; set; }
|
public TimeSpan CurrentTime { get; set; }
|
||||||
|
@ -285,39 +285,17 @@ namespace Ryujinx.Ava.UI.ViewModels.Settings
|
||||||
isDirty |= config.System.ExpandRam.Value != ExpandDramSize;
|
isDirty |= config.System.ExpandRam.Value != ExpandDramSize;
|
||||||
isDirty |= config.System.IgnoreMissingServices.Value != IgnoreMissingServices;
|
isDirty |= config.System.IgnoreMissingServices.Value != IgnoreMissingServices;
|
||||||
|
|
||||||
if (_audioViewModel != null)
|
isDirty |= _audioViewModel?.CheckIfModified(config) ?? false;
|
||||||
{
|
isDirty |= _cpuViewModel?.CheckIfModified(config) ?? false;
|
||||||
isDirty |= _audioViewModel.CheckIfModified(config);
|
isDirty |= _graphicsViewModel?.CheckIfModified(config) ?? false;
|
||||||
}
|
isDirty |= _hotkeysViewModel?.CheckIfModified(config) ?? false;
|
||||||
|
// TODO: IMPLEMENT THIS!!
|
||||||
if (_cpuViewModel != null)
|
// isDirty |= _inputViewModel?.CheckIfModified(config) ?? false;
|
||||||
{
|
|
||||||
isDirty |= _cpuViewModel.CheckIfModified(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_graphicsViewModel != null)
|
|
||||||
{
|
|
||||||
isDirty |= _graphicsViewModel.CheckIfModified(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_hotkeysViewModel != null)
|
|
||||||
{
|
|
||||||
isDirty |= _hotkeysViewModel.CheckIfModified(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_inputViewModel != null)
|
|
||||||
{
|
|
||||||
// TODO: IMPLEMENT THIS!!
|
|
||||||
// isDirty |= _inputViewModel.CheckIfModified(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Network
|
// Network
|
||||||
isDirty |= config.System.EnableInternetAccess.Value != EnableInternetAccess;
|
isDirty |= config.System.EnableInternetAccess.Value != EnableInternetAccess;
|
||||||
|
|
||||||
if (_loggingViewModel != null)
|
isDirty |= _loggingViewModel?.CheckIfModified(config) ?? false;
|
||||||
{
|
|
||||||
isDirty |= _loggingViewModel.CheckIfModified(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
isDirty |= config.Multiplayer.LanInterfaceId.Value != _networkInterfaces[NetworkInterfaceList[NetworkInterfaceIndex]];
|
isDirty |= config.Multiplayer.LanInterfaceId.Value != _networkInterfaces[NetworkInterfaceList[NetworkInterfaceIndex]];
|
||||||
isDirty |= config.Multiplayer.Mode.Value != (MultiplayerMode)MultiplayerModeIndex;
|
isDirty |= config.Multiplayer.Mode.Value != (MultiplayerMode)MultiplayerModeIndex;
|
||||||
|
|
Loading…
Reference in a new issue