fix: 移除对_isVideoTask的错误赋值,以及对文件的拓展名、大小校验

This commit is contained in:
status102
2023-10-18 20:05:18 +08:00
parent 0f2eb8e5b3
commit a40ec5f31b

View File

@@ -464,13 +464,6 @@ namespace MaaWpfGui.ViewModels.UI
return;
}
bool isJsonFile = filename.ToLower().EndsWith(".json") || fileInfo.Length < 4 * 1024 * 1024;
if (!isJsonFile)
{
_isVideoTask = true;
return;
}
try
{
using var reader = new StreamReader(File.OpenRead(filename));