From a40ec5f31b19d718aedd00ee7706d71dc3ef0696 Mon Sep 17 00:00:00 2001 From: status102 Date: Wed, 18 Oct 2023 20:05:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E5=AF=B9=5FisVideoTas?= =?UTF-8?q?k=E7=9A=84=E9=94=99=E8=AF=AF=E8=B5=8B=E5=80=BC=EF=BC=8C?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=E5=AF=B9=E6=96=87=E4=BB=B6=E7=9A=84=E6=8B=93?= =?UTF-8?q?=E5=B1=95=E5=90=8D=E3=80=81=E5=A4=A7=E5=B0=8F=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs b/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs index aacf949992..ed94e80e37 100644 --- a/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs @@ -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));