path fix
This commit is contained in:
@@ -47,6 +47,7 @@ public partial class MainLayout : IDisposable
|
||||
};
|
||||
|
||||
private MudTheme _currentTheme = null!;
|
||||
private bool _disposed;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
@@ -71,6 +72,7 @@ public partial class MainLayout : IDisposable
|
||||
|
||||
private async void OnPropertyChanged(object? sender, PropertyChangedEventArgs e)
|
||||
{
|
||||
if (_disposed) return;
|
||||
if (e.PropertyName == nameof(MainWindowVM.TestMode))
|
||||
{
|
||||
_testMode = MainWindowVm.TestMode;
|
||||
@@ -98,6 +100,7 @@ public partial class MainLayout : IDisposable
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_disposed = true;
|
||||
MainWindowVm.PropertyChanged -= OnPropertyChanged;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user