删除视频压缩工具

This commit is contained in:
zsyg
2025-07-02 20:14:29 +08:00
committed by GitHub
parent ee65689048
commit ef7c582c50
8 changed files with 19 additions and 47 deletions

View File

@@ -209,7 +209,7 @@ namespace AppStore
{
string jsonString = File.ReadAllText(jsonPath);
var jsonData = JsonSerializer.Deserialize<JsonElement>(jsonString);
string customPath = jsonData.GetProperty("DownloadPath").GetString();
string customPath = jsonData.GetProperty("DownloadPath").GetString() ?? "";
// 如果自定义路径有效则显示,否则显示默认路径
txtBox.Text = !string.IsNullOrWhiteSpace(customPath) ? customPath : defaultPath;