mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
perf: wpf反馈压缩包分离日志和配置
This commit is contained in:
@@ -17,6 +17,7 @@ using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using HandyControl.Controls;
|
||||
using HandyControl.Data;
|
||||
using MaaWpfGui.Configuration;
|
||||
@@ -93,7 +94,9 @@ public class IssueReportUserControlModel : PropertyChangedBase
|
||||
continue;
|
||||
}
|
||||
|
||||
string dest = Path.Combine(debugTempPath, Path.GetFileName(file));
|
||||
string relativePath = Path.GetRelativePath(Environment.CurrentDirectory, file);
|
||||
string dest = Path.Combine(tempPath, relativePath);
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(dest)!);
|
||||
File.Copy(file, dest, overwrite: true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user