From 2ecf999569f3f39ac2933a81065215b2dfd62b82 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Sat, 18 Jan 2025 22:01:17 -0600 Subject: [PATCH] misc: chore: change ThemeManager ThemeChanged to a basic Action since both arguments are unused --- src/Ryujinx/Common/ThemeManager.cs | 4 ++-- src/Ryujinx/UI/ViewModels/AboutWindowViewModel.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx/Common/ThemeManager.cs b/src/Ryujinx/Common/ThemeManager.cs index 8c52c2a66..6da01bfa7 100644 --- a/src/Ryujinx/Common/ThemeManager.cs +++ b/src/Ryujinx/Common/ThemeManager.cs @@ -4,11 +4,11 @@ namespace Ryujinx.Ava.Common { public static class ThemeManager { - public static event EventHandler ThemeChanged; + public static event Action ThemeChanged; public static void OnThemeChanged() { - ThemeChanged?.Invoke(null, EventArgs.Empty); + ThemeChanged?.Invoke(); } } } diff --git a/src/Ryujinx/UI/ViewModels/AboutWindowViewModel.cs b/src/Ryujinx/UI/ViewModels/AboutWindowViewModel.cs index 979ae8253..10256babe 100644 --- a/src/Ryujinx/UI/ViewModels/AboutWindowViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/AboutWindowViewModel.cs @@ -27,7 +27,7 @@ namespace Ryujinx.Ava.UI.ViewModels ThemeManager.ThemeChanged += ThemeManager_ThemeChanged; } - private void ThemeManager_ThemeChanged(object sender, EventArgs e) + private void ThemeManager_ThemeChanged() { Dispatcher.UIThread.Post(() => UpdateLogoTheme(ConfigurationState.Instance.UI.BaseStyle.Value)); }