From 8ffe522f531cb61e9a2858a3256aa109dd042d42 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Fri, 19 Apr 2024 17:32:21 -0400 Subject: [PATCH] Cleanup --- .../UI/ViewModels/Settings/SettingsViewModel.cs | 10 +--------- src/Ryujinx/UI/Windows/SettingsWindow.axaml.cs | 13 ++----------- 2 files changed, 3 insertions(+), 20 deletions(-) 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; }