From 2ecacc0eeb08a539202fb238d2fb1b8aef432bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89=E9=B8=AD=E8=9B=8B?= Date: Tue, 23 Sep 2025 00:34:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=89=E5=BE=85=E8=BF=9B=E5=85=A5=E4=B8=BB?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=90=8E=E6=89=A7=E8=A1=8C=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BetterGenshinImpact/Service/ScriptService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BetterGenshinImpact/Service/ScriptService.cs b/BetterGenshinImpact/Service/ScriptService.cs index c8986dc0..d0c8e453 100644 --- a/BetterGenshinImpact/Service/ScriptService.cs +++ b/BetterGenshinImpact/Service/ScriptService.cs @@ -578,11 +578,12 @@ public partial class ScriptService : IScriptService { if (!homePageViewModel.TaskDispatcherEnabled || !TaskContext.Instance().IsInitialized) { + await Task.Delay(500); continue; } var content = TaskControl.CaptureToRectArea(); - if (Bv.IsInMainUi(content) || Bv.IsInAnyClosableUi(content)) + if (Bv.IsInMainUi(content) || Bv.IsInAnyClosableUi(content) || Bv.IsInDomain(content)) { return; }