Core - Ensure application data folder exists

UI - Properly catch exceptions during exception display
UI - Display fatal exceptions during Core creation, even before Core initialisation
This commit is contained in:
Robert committed 2020-03-12 19:34:53 +01:00
1 parent 0ccc1fed3d
commit d009b11e97
4 files changed
+45 -24

No files matched your search

@@ -95,14 +95,18 @@ namespace Artemis.UI.Shared.Services.Dialog
new ConstructorArgument("message", message),
new ConstructorArgument("exception", exception)
};
try
await Execute.OnUIThreadAsync(async () =>
{
await Execute.OnUIThreadAsync(async () => await ShowDialog<ExceptionDialogViewModel>(arguments));
}
catch (Exception)
{
//ignored
}
try
{
await ShowDialog<ExceptionDialogViewModel>(arguments);
}
catch (Exception)
{
// ignored
}
});
}
private async Task<object> ShowDialog(string identifier, DialogViewModelBase viewModel)