Desktop: keep a vault-visibility failure from closing the app, and leave a crash log when anything else does

This commit is contained in:
jaap-jan committed 2026-10-02 14:28:27 +02:00
1 parent 170caa1391
commit 37e9d74938
6 files changed
+154 -5

No files matched your search

+4
View File
@@ -48,6 +48,10 @@ internal sealed partial class DodoSshApp : Application
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
// Recorded, not handled: see CrashLog for why the process still goes.
Avalonia.Threading.Dispatcher.UIThread.UnhandledException +=
(_, e) => CrashLog.RecordFromTheUiThread(e.Exception);
ListenForOpenedLinks();
ShowSomethingWhileComposing(desktop);
}