Remove this
This commit is contained in:
parent
54c0630c93
commit
b240865dac
2 changed files with 4 additions and 5 deletions
|
@ -134,8 +134,7 @@ namespace Ryujinx.Ava
|
||||||
|
|
||||||
private ThemeVariant DetectSystemTheme()
|
private ThemeVariant DetectSystemTheme()
|
||||||
{
|
{
|
||||||
var platformSettings = this.PlatformSettings;
|
var colorValues = PlatformSettings.GetColorValues();
|
||||||
var colorValues = platformSettings.GetColorValues();
|
|
||||||
|
|
||||||
return ConvertThemeVariant(colorValues.ThemeVariant);
|
return ConvertThemeVariant(colorValues.ThemeVariant);
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,10 +100,10 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
protected override void OnClosed(EventArgs e)
|
protected override void OnClosed(EventArgs e)
|
||||||
{
|
{
|
||||||
base.OnClosed(e);
|
base.OnClosed(e);
|
||||||
if (this.PlatformSettings != null)
|
if (PlatformSettings != null)
|
||||||
{
|
{
|
||||||
// Unsubscribe to the ColorValuesChanged event
|
// Unsubscribe to the ColorValuesChanged event
|
||||||
this.PlatformSettings.ColorValuesChanged -= OnPlatformColorValuesChanged;
|
PlatformSettings.ColorValuesChanged -= OnPlatformColorValuesChanged;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -391,7 +391,7 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
Initialize();
|
Initialize();
|
||||||
|
|
||||||
// Subscribe to the ColorValuesChanged event
|
// Subscribe to the ColorValuesChanged event
|
||||||
this.PlatformSettings.ColorValuesChanged += OnPlatformColorValuesChanged;
|
PlatformSettings.ColorValuesChanged += OnPlatformColorValuesChanged;
|
||||||
|
|
||||||
ViewModel.Initialize(
|
ViewModel.Initialize(
|
||||||
ContentManager,
|
ContentManager,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue