mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
fix: 移除对_isVideoTask的错误赋值,以及对文件的拓展名、大小校验
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user