refactor: cleanup

This commit is contained in:
2025-01-25 14:27:55 +07:00
parent 4680aa9f9f
commit 7049e8489a
5 changed files with 15 additions and 12 deletions

2
.gitignore vendored
View File

@@ -3,3 +3,5 @@ obj/
/packages/ /packages/
riderModule.iml riderModule.iml
/_ReSharper.Caches/ /_ReSharper.Caches/
.idea/
*.sln.DotSettings.user

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>

View File

@@ -7,8 +7,13 @@ public partial class MainLayout
// To allow the menu button to control the drawer // To allow the menu button to control the drawer
private NavigationDrawer _drawer = null!; private NavigationDrawer _drawer = null!;
// To control the dark mode
private bool _isDarkMode; private bool _isDarkMode;
// Indicates if the component is initializing, hence would not render anything to not confuse the user
private bool _isInitialing = true; private bool _isInitialing = true;
// Used for the system preference for dark mode
private MudThemeProvider _mudThemeProvider = null!; private MudThemeProvider _mudThemeProvider = null!;
protected override async Task OnAfterRenderAsync(bool firstRender) protected override async Task OnAfterRenderAsync(bool firstRender)