path fix
This commit is contained in:
@@ -18,6 +18,7 @@ public partial class SingleCameraControl : ComponentBase, IDisposable
|
||||
private bool _canHotReload;
|
||||
private bool _showPauseButton;
|
||||
private SingleCameraVM? _subscribedVm;
|
||||
private bool _disposed;
|
||||
|
||||
protected override void OnParametersSet()
|
||||
{
|
||||
@@ -61,6 +62,7 @@ public partial class SingleCameraControl : ComponentBase, IDisposable
|
||||
|
||||
private async void OnPropertyChanged(object? sender, PropertyChangedEventArgs e)
|
||||
{
|
||||
if (_disposed) return;
|
||||
UpdateState();
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
@@ -103,6 +105,7 @@ public partial class SingleCameraControl : ComponentBase, IDisposable
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_disposed = true;
|
||||
Unsubscribe();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user