prevent swallowed exception.
MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -197,17 +197,18 @@ namespace WalletWasabi.Fluent.ViewModels
return null;
});
- try
+ RxApp.MainThreadScheduler.Schedule(async () =>
{
- _legalChecker.WaitAndGetLatestDocumentAsync().ContinueWith(_ =>
+ try
{
+ await _legalChecker.WaitAndGetLatestDocumentAsync();
+
LegalDocumentsViewModel.RegisterAsyncLazy(async () =>
{
var document = await _legalChecker.WaitAndGetLatestDocumentAsync();
return new LegalDocumentsViewModel(document.Content);
});
_searchPage.RegisterSearchEntry(LegalDocumentsViewModel.MetaData);
- });
}
catch (Exception ex)
{
@@ -216,6 +217,7 @@ namespace WalletWasabi.Fluent.ViewModels
Logger.LogError("Failed to get Legal documents.", ex);
}
}
+ });
UserSupportViewModel.RegisterLazy(() => new UserSupportViewModel());
BugReportLinkViewModel.RegisterLazy(() => new BugReportLinkViewModel());

prevent swallowed exception.