[0108] 主页 Open 卡片打开文件时默认定位到最近文档目录#3328
Merged
Merged
Conversation
当主页最近文档列表非空时,点击 Open 卡片会将文件对话框 默认目录设为最新最近文档所在目录,减少用户导航成本。 无最近文档时保持原有行为。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
改进点
当用户处于启动页主页、尚未打开任何文档时,点击 "Open" 卡片弹出的文件对话框默认目录未与最近文档列表关联,导致用户需要手动导航到目标目录。
变更内容
QtHomePage::createDocumentWithStyle,当styleId == \"open\"且recentDocs_非空时,提取最新最近文档的目录作为文件对话框的默认路径测试方式
🤖 Generated with Claude Code