From 43fcc736d52ab379f209c5ec746ba28221ea68a2 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Sun, 16 Nov 2025 03:32:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B8=85=E6=97=A5=E5=BF=97=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E6=8A=8A=20ToolTip=20=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs b/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs index 5996debbe5..962d434310 100644 --- a/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs +++ b/src/MaaWpfGui/ViewModels/UI/CopilotViewModel.cs @@ -147,6 +147,17 @@ public partial class CopilotViewModel : Screen { Execute.OnUIThread(() => { + foreach (var log in LogItemViewModels) + { + if (log.ToolTip is ToolTip t) + { + t.IsOpen = false; + t.Content = null; + ToolTipService.SetPlacementTarget(t, null); + t.PlacementTarget = null; + } + } + LogItemViewModels.Clear(); AddLog(LocalizationHelper.GetString("CopilotTip"), showTime: false); });