mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-26 10:33:05 +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,
|
SettingsLoggingViewModel loggingViewModel,
|
||||||
SettingsNetworkViewModel networkViewModel,
|
SettingsNetworkViewModel networkViewModel,
|
||||||
SettingsSystemViewModel systemViewModel,
|
SettingsSystemViewModel systemViewModel,
|
||||||
SettingsUIViewModel uiViewModel) : this()
|
SettingsUIViewModel uiViewModel)
|
||||||
{
|
{
|
||||||
_audioViewModel = audioViewModel;
|
_audioViewModel = audioViewModel;
|
||||||
_cpuViewModel = cpuViewModel;
|
_cpuViewModel = cpuViewModel;
|
||||||
|
@ -66,14 +66,6 @@ namespace Ryujinx.Ava.UI.ViewModels.Settings
|
||||||
_uiViewModel.DirtyEvent += CheckIfModified;
|
_uiViewModel.DirtyEvent += CheckIfModified;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SettingsViewModel()
|
|
||||||
{
|
|
||||||
if (Program.PreviewerDetached)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void CheckIfModified()
|
public void CheckIfModified()
|
||||||
{
|
{
|
||||||
bool isDirty = false;
|
bool isDirty = false;
|
||||||
|
|
|
@ -60,16 +60,7 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
Load();
|
Load();
|
||||||
}
|
}
|
||||||
|
|
||||||
public SettingsWindow()
|
private void UpdateDirtyTitle(bool isDirty)
|
||||||
{
|
|
||||||
ViewModel = new SettingsViewModel();
|
|
||||||
DataContext = ViewModel;
|
|
||||||
|
|
||||||
InitializeComponent();
|
|
||||||
Load();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void UpdateDirtyTitle(bool isDirty)
|
|
||||||
{
|
{
|
||||||
if (!IsInitialized)
|
if (!IsInitialized)
|
||||||
{
|
{
|
||||||
|
@ -88,7 +79,7 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ToggleButtons(bool enable)
|
private void ToggleButtons(bool enable)
|
||||||
{
|
{
|
||||||
Buttons.IsEnabled = enable;
|
Buttons.IsEnabled = enable;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue