diff --git a/src/Ryujinx/UI/ViewModels/Settings/SettingsViewModel.cs b/src/Ryujinx/UI/ViewModels/Settings/SettingsViewModel.cs index 96678a330..d3ed3d02d 100644 --- a/src/Ryujinx/UI/ViewModels/Settings/SettingsViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/Settings/SettingsViewModel.cs @@ -43,7 +43,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Settings SettingsLoggingViewModel loggingViewModel, SettingsNetworkViewModel networkViewModel, SettingsSystemViewModel systemViewModel, - SettingsUIViewModel uiViewModel) : this() + SettingsUIViewModel uiViewModel) { _audioViewModel = audioViewModel; _cpuViewModel = cpuViewModel; @@ -66,14 +66,6 @@ namespace Ryujinx.Ava.UI.ViewModels.Settings _uiViewModel.DirtyEvent += CheckIfModified; } - public SettingsViewModel() - { - if (Program.PreviewerDetached) - { - - } - } - public void CheckIfModified() { bool isDirty = false; diff --git a/src/Ryujinx/UI/Windows/SettingsWindow.axaml.cs b/src/Ryujinx/UI/Windows/SettingsWindow.axaml.cs index ca4fb3f4a..5a389c232 100644 --- a/src/Ryujinx/UI/Windows/SettingsWindow.axaml.cs +++ b/src/Ryujinx/UI/Windows/SettingsWindow.axaml.cs @@ -60,16 +60,7 @@ namespace Ryujinx.Ava.UI.Windows Load(); } - public SettingsWindow() - { - ViewModel = new SettingsViewModel(); - DataContext = ViewModel; - - InitializeComponent(); - Load(); - } - - public void UpdateDirtyTitle(bool isDirty) + private void UpdateDirtyTitle(bool isDirty) { if (!IsInitialized) { @@ -88,7 +79,7 @@ namespace Ryujinx.Ava.UI.Windows } } - public void ToggleButtons(bool enable) + private void ToggleButtons(bool enable) { Buttons.IsEnabled = enable; }