Files
MemRelay/projects/4111f53b-afa5-48e1-aaf8-d70a7edc0638/Checkpoint 2026-09-02 00-44-54 UTC [a142d43174].md
T

23 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-09-02 00:44:54 UTC [a142d43174]
type: checkpoint
permalink: main/projects/4111f53b-afa5-48e1-aaf8-d70a7edc0638/checkpoint-2026-09-02-00-44-54-utc-a142d43174
stable_id: 2dff9159-f607-4f5b-bb1a-b3e3af15c2cb
scope: project
project_id: 4111f53b-afa5-48e1-aaf8-d70a7edc0638
memory_type: checkpoint
status: active
revision: 1
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
created_at: '2026-09-23T14:52:35.212018+00:00'
updated_at: '2026-09-23T14:52:35.212071+00:00'
tags:
- checkpoint
- wpf
- search
- datagrid
- bugfix
- verification
---
2026-09-02:修复用户反馈的国家搜索无响应与常用参数双击异常。根因一:VisibleFields 直接返回 LINQ IEnumerable,WPF 默认集合视图不支持 IEditableCollectionView.EditItem;现改为 ObservableCollection<EntityField>,在实体或字段分组变化时刷新并保留原字段对象。根因二:搜索框每个字符都在 UI 线程递归扫描完整国家树(126 文明且每个文明含建筑和生产关系),现改为 300ms 防抖、CancellationTokenSource 取消旧请求,在后台检索 Civs/Entities/Relations 轻量数据,最多返回 250 个可直接选择的国家、建筑、单位、科技和关系结果;清空搜索立即恢复完整国家树,无匹配时显示提示。真实 Data.bar STA/WPF 回归:126 国家、8667 实体;“阿坎”“Spanish”“Musketeer”均命中预期结果;集合视图 EditItem/CommitEdit 成功。Debug build 0 警告 0 错误,dotnet format 与 git diff --check 通过;重新生成 release 自包含发布并启动确认窗口标题 AoE3 编辑器、Responding=True、无 startup-error.log。临时验证工程、调试日志和验证进程已清理。提交 3ee0022 fix: 修复国家搜索和参数编辑异常。下一步:无,本次反馈已完成。给下个会话:继续在纯 C# .NET 8 WPF 技术栈上工作,不要恢复 Rust/Tauri;发布目录已包含本次修复。