properly destroy channel preview (#1910)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
@inject IJSRuntime JsRuntime
|
||||
@implements IDisposable
|
||||
|
||||
<div>
|
||||
<MudDialog>
|
||||
@@ -43,6 +44,11 @@
|
||||
}
|
||||
|
||||
private void Close()
|
||||
{
|
||||
MudDialog.Close(DialogResult.Ok(true));
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -50,10 +56,9 @@
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// ignored
|
||||
// ignore
|
||||
}
|
||||
|
||||
MudDialog.Close(DialogResult.Ok(true));
|
||||
MudDialog?.Dispose();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user