mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-24 18:44:38 +08:00
Bump packages; fix resume flag & Sentry attach
Update workspace settings and dependency versions, plus small service fixes. .arts/settings.json adds editor clawMode and activityBar location. Directory.Packages.props upgrades many packages (e.g. Avalonia to 12.0.2, CommunityToolkit.Mvvm, Downloader, Sentry to 6.4.1, Microsoft.* previews, and more). ResumableDownloadService renamed ResumeDownloadIfCan to EnableAutoResumeDownload. SentryCrashTelemetryService now adds the log-tail as an attachment via scope.AddAttachment(byte[], name, contentType) instead of creating an Attachment object.
This commit is contained in:
@@ -292,7 +292,7 @@ public sealed class ResumableDownloadService
|
||||
ParallelDownload = useParallelDownload,
|
||||
MinimumSizeOfChunking = options.ParallelThresholdBytes,
|
||||
MaxTryAgainOnFailure = 3,
|
||||
ResumeDownloadIfCan = true,
|
||||
EnableAutoResumeDownload = true,
|
||||
ClearPackageOnCompletionWithFailure = false,
|
||||
FileExistPolicy = FileExistPolicy.Delete,
|
||||
DownloadFileExtension = ".part"
|
||||
|
||||
@@ -337,12 +337,10 @@ public sealed class SentryCrashTelemetryService : IDisposable
|
||||
{
|
||||
scope.SetExtra("log_tail", logTail);
|
||||
scope.SetExtra("log_tail_line_count", logTail.Count(character => character == '\n') + 1);
|
||||
var attachment = new Attachment(
|
||||
AttachmentType.Default,
|
||||
new ByteAttachmentContent(Encoding.UTF8.GetBytes(logTail)),
|
||||
scope.AddAttachment(
|
||||
Encoding.UTF8.GetBytes(logTail),
|
||||
"log-tail.txt",
|
||||
"text/plain");
|
||||
scope.AddAttachment(attachment);
|
||||
contentType: "text/plain");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user