path fix
This commit is contained in:
@@ -15,6 +15,7 @@ public partial class PreviewWindow : ComponentBase, IDisposable
|
||||
private DateTime _lastRenderTime = DateTime.MinValue;
|
||||
private Timer? _pendingTimer;
|
||||
private PreviewVM? _subscribedVm;
|
||||
private bool _disposed;
|
||||
|
||||
protected override void OnParametersSet()
|
||||
{
|
||||
@@ -69,6 +70,8 @@ public partial class PreviewWindow : ComponentBase, IDisposable
|
||||
|
||||
private async Task RenderCurrentFrame()
|
||||
{
|
||||
if (_disposed) return;
|
||||
|
||||
_lastRenderTime = DateTime.UtcNow;
|
||||
|
||||
var mat = ViewModel?.ImagePreview;
|
||||
@@ -88,6 +91,7 @@ public partial class PreviewWindow : ComponentBase, IDisposable
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_disposed = true;
|
||||
_pendingTimer?.Dispose();
|
||||
Unsubscribe();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user