fix(editor): deduplicate blank tab indexes to fix incorrect new docum…#473
Conversation
…ent naming - Add std::unique + erase after sorting in getBlankFileIndex() to remove duplicate index numbers - Prevent newly created documents from being stuck with the same "Untitled N" name when tabs with duplicate titles are dragged between windows 修复(editor): 对空白标签索引去重以修复新文档命名错误 - 在 getBlankFileIndex() 的排序后增加 std::unique + erase 去除重复的索引编号 - 修复跨窗口拖入同名"未命名文档"标签后,新建文档名称始终为同一编号的问题 Log: 修复跨窗口拖拽标签导致新文档命名计数器异常的 bug Bug: https://pms.uniontech.com/bug-view-251843.html
There was a problem hiding this comment.
Sorry @pppanghu77, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
deepin pr auto review这段代码的修改是针对 语法逻辑
代码质量
代码性能
代码安全
改进建议
总体而言,这段代码的修改是合理且必要的,解决了标签页拖动时可能出现的索引计算问题。代码质量良好,没有明显的安全问题。 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, pppanghu77 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/forcemerge |
|
This pr force merged! (status: unstable) |
…ent naming
修复(editor): 对空白标签索引去重以修复新文档命名错误
Log: 修复跨窗口拖拽标签导致新文档命名计数器异常的 bug
Bug: https://pms.uniontech.com/bug-view-251843.html