Repository navigation
[6231] 统一三处最近列表的缺失条目行为并收敛红色提示 - #4763
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
任务
[6231] 统一三处最近列表(File 菜单「最近使用」、标题栏 Go 菜单、启动页最近文档)对缺失文件的行为:点击之后才发现——展示期一律不过滤(重启后缺失条目照常显示),点击缺失本地文件时弹出统一的红色 toast「文件不存在,已从最近列表移除」并从最近列表移除、跳过打开,三处经同一数据源保持同步。
任务文档:LiiiLabs/dev-agent#251(devel/6231.stem)
问题(Why)
三处最近列表共用同一份 scheme 最近文件存储,但缺失文件的处理碎片化:
改动(How)
qt_utilities新增qt_show_missing_recent_toast(anchor=nullptr)(Error 红色、3000ms、文案键 File not found, removed from recent list 收敛为一份实现,anchor 空回退 activeWindow);零参 glueqt-show-missing-recent-toast(glue_qt.lua)供 File 菜单 scheme 侧调用。file-list-menu新增recent?形参(最近列表入口传 #t,linked-file-menu 传 #f 保持原行为),缺失时调 glue 弹 toast 并recent-files-remove-by-path移除;tmfs:// 云 URL(url-rooted-tmfs?)一律豁免。open-recent-entry保持不动。loadRecentDocs移除 QFile::exists 过滤块,缺失条目重启后照常显示。测试
手动验证(已由开发者验证通过)
🤖 Generated with Claude Code