From f47200d6361368e42ef0f83e995cbe89831e7760 Mon Sep 17 00:00:00 2001 From: Michael Babienco Date: Mon, 16 Feb 2026 19:41:02 +0900 Subject: [PATCH] Don't kill software when there's an exception --- ViewModels/MainViewModel.cs | 5 ++++- Views/MainView.axaml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ViewModels/MainViewModel.cs b/ViewModels/MainViewModel.cs index 3c68b93..4924f6a 100644 --- a/ViewModels/MainViewModel.cs +++ b/ViewModels/MainViewModel.cs @@ -293,6 +293,7 @@ class MainViewModel : BaseViewModel, IFontResolver } } LogInfo("Please report this error to a programmer or fix the issue listed above."); + IsCreatingPDF = false; } } } @@ -442,7 +443,9 @@ class MainViewModel : BaseViewModel, IFontResolver var filePath = file.FilePath; if (!File.Exists(filePath)) { - LogInfo("ERROR: File {0} does not exist at path {1}. Please remove it from the report or re-add it using the Add Item button if you still want it to be in this report.", file.Title, file.FilePath); + LogInfo("ERROR: File \"{0}\" does not exist at path \"{1}\". Please remove it from the report or re-add it using the Add Item button if you still want it to be in this report.", file.Title, file.FilePath); + IsCreatingPDF = false; + return; } if (fileName == ".DS_Store" || fileName == outputFileName) { diff --git a/Views/MainView.axaml b/Views/MainView.axaml index 622a4c1..97a69de 100644 --- a/Views/MainView.axaml +++ b/Views/MainView.axaml @@ -113,7 +113,7 @@ - : + : :