fix exception on close.
MODIFY
WalletWasabi.Fluent/ViewModels/Dialogs/DialogViewModelBase.cs
WalletWasabi.Fluent/ViewModels/Dialogs/DialogViewModelBase.cs
@@ -50,9 +50,9 @@ namespace WalletWasabi.Fluent.ViewModels.Dialogs
/// and ready to pass a value back to the caller.
/// </summary>
/// <param name="value">The return value of the dialog</param>
- public void Close(TResult value = default)
+ protected void Close(TResult value = default)
{
- if (!IsDialogOpen)
+ if (_currentTaskCompletionSource.Task.IsCompleted)
{
throw new InvalidOperationException("Dialog is already closed.");
}

fix exception on close.