If Legal Docs open then close it before opening it.
MODIFY
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
WalletWasabi.Gui/ViewModels/StatusBarViewModel.cs
@@ -269,6 +269,7 @@ namespace WalletWasabi.Gui.ViewModels
var filePath = Path.Combine(legalFolderPath, $"{version}.txt");
var legalContent = await client.GetLegalDocumentsAsync(CancellationToken.None);
+ IoC.Get<IShell>().Documents.OfType<LegalDocumentsViewModel>()?.FirstOrDefault()?.OnClose();
IoC.Get<IShell>().AddOrSelectDocument(() => new LegalDocumentsViewModel(legalContent, new LegalDocuments(filePath)));
}
}

If Legal Docs open then close it before opening it.