feat: 清日志的时候把 ToolTip 手动清除一下

This commit is contained in:
uye
2025-11-16 03:32:35 +08:00
parent f1888c989e
commit 43fcc736d5

View File

@@ -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);
});