Browse Source

Add general catch to update checker; it crashes but the cause is unclear rn

Equbuxu 1 year ago
parent
commit
39b55cc4a1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/PixiEditor/ViewModels/SubViewModels/Main/UpdateViewModel.cs

+ 5 - 0
src/PixiEditor/ViewModels/SubViewModels/Main/UpdateViewModel.cs

@@ -220,6 +220,11 @@ internal class UpdateViewModel : SubViewModel<ViewModelMain>
             {
                 NoticeDialog.Show("COULD_NOT_CHECK_FOR_UPDATES", "UPDATE_CHECK_FAILED");
             }
+            catch (Exception e)
+            {
+                CrashHelper.SendExceptionInfoToWebhook(e);
+                NoticeDialog.Show("COULD_NOT_CHECK_FOR_UPDATES", "UPDATE_CHECK_FAILED");
+            }
 
             AskToInstall();
         }