Browse Source

Added better os info to Crash Report

flabbet 6 months ago
parent
commit
d639d0b5a6
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/PixiEditor/Models/ExceptionHandling/CrashReport.cs

+ 6 - 3
src/PixiEditor/Models/ExceptionHandling/CrashReport.cs

@@ -71,12 +71,15 @@ internal class CrashReport : IDisposable
         }
         }
 
 
         builder
         builder
-            .AppendLine($"PixiEditor {VersionHelpers.GetCurrentAssemblyVersionString(moreSpecific: true)} x{IntPtr.Size * 8} crashed on {currentTime:yyyy.MM.dd} at {currentTime:HH:mm:ss} {currentTime:zzz}")
-            .AppendLine($"Application started {GetFormatted(() => processStartTime, "yyyy.MM.dd HH:hh:ss")}, {GetFormatted(() => currentTime - processStartTime, @"d\ hh\:mm\.ss")} ago")
+            .AppendLine(
+                $"PixiEditor {VersionHelpers.GetCurrentAssemblyVersionString(moreSpecific: true)} x{IntPtr.Size * 8} crashed on {currentTime:yyyy.MM.dd} at {currentTime:HH:mm:ss} {currentTime:zzz}")
+            .AppendLine(
+                $"Application started {GetFormatted(() => processStartTime, "yyyy.MM.dd HH:hh:ss")}, {GetFormatted(() => currentTime - processStartTime, @"d\ hh\:mm\.ss")} ago")
             .AppendLine($"Report: {Guid.NewGuid()}\n")
             .AppendLine($"Report: {Guid.NewGuid()}\n")
             .AppendLine("-----System Information----")
             .AppendLine("-----System Information----")
             .AppendLine("General:")
             .AppendLine("General:")
-            .AppendLine($"  OS: {Environment.OSVersion.VersionString}")
+            .AppendLine($"  OS: {IOperatingSystem.Current.AnalyticsName}")
+            .AppendLine($"  OS Version: {Environment.OSVersion.VersionString}")
             .AppendLine();
             .AppendLine();
 
 
         CrashHelper helper = new();
         CrashHelper helper = new();