[CHANGE] Remove build warning

This commit is contained in:
max
2025-08-17 19:04:07 +02:00
parent b6453d8bf6
commit a62eeb727a
4 changed files with 4 additions and 7 deletions

View File

@@ -5,11 +5,11 @@ namespace Manager.App.Components.Layout;
public partial class BaseLayout
{
private readonly MudTheme _mudTheme = new MudTheme();
private readonly MudTheme _mudTheme = new();
private MudThemeProvider? _themeProvider;
private bool _isDarkTheme = true;
public event EventHandler<bool>? OnDarkThemeChanged;
public EventCallback<bool> OnDarkThemeChanged;
public bool DarkTheme
{
@@ -31,7 +31,6 @@ public partial class BaseLayout
if (firstRender && _themeProvider != null)
{
DarkTheme = await _themeProvider.GetSystemDarkModeAsync();
_themeProvider.IsDarkModeChanged = EventCallback.Factory.Create<bool>(this, x => OnDarkThemeChanged?.Invoke(this, x));
}
}
}