mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-17 20:16:40 +00:00
Cleanup
This commit is contained in:
parent
47c491271a
commit
8ffe522f53
2 changed files with 3 additions and 20 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue