Ruben 1 год назад
Родитель
Сommit
832ada01bf
1 измененных файлов с 13 добавлено и 1 удалено
  1. 13 1
      src/PicView.WPF/Views/Windows/AboutWindow.xaml.cs

+ 13 - 1
src/PicView.WPF/Views/Windows/AboutWindow.xaml.cs

@@ -11,6 +11,7 @@ using PicView.WPF.Shortcuts;
 using PicView.WPF.SystemIntegration;
 using PicView.WPF.UILogic;
 using PicView.WPF.UILogic.Sizing;
+using PicView.WPF.Update;
 
 namespace PicView.WPF.Views.Windows;
 
@@ -131,7 +132,18 @@ public partial class AboutWindow
 
         UpdateButton.MouseLeftButtonDown += delegate
         {
-            Update.UpdateHelper.Update(this);
+            try
+            {
+                UpdateHelper.Update(this);
+            }
+            catch (Exception exception)
+            {
+#if DEBUG
+                Console.WriteLine();
+#endif
+                MessageBox.Show(exception.Message);
+                throw;
+            }
         };
     }