mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 20:06:33 +00:00
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:
1 parent
10eaf82ed0
commit
6cf40fa008
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)
|
||||
|
||||
Reference in new issue
Block a user