mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
feat: 清日志的时候把 ToolTip 手动清除一下
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user