-
Notifications
You must be signed in to change notification settings - Fork 78
fix: 修复关闭窗口保存提示 #355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fix: 修复关闭窗口保存提示 #355
Conversation
修复关闭窗口保存提示 Bug: https://pms.uniontech.com/bug-view-315439.html https://pms.uniontech.com/bug-view-315425.html Log: 修复关闭窗口保存提示,与v20保持一致
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: myk1343 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 |
deepin pr auto review代码审查意见:
总体来说,代码改动是合理的,但是需要注意性能和用户体验的问题。建议在保存文件和备份文件时,尽量减少对文件系统的访问,避免频繁切换界面。 |
|
Note
详情{
"src/widgets/window.cpp": [
{
"line": " QString key = \"base/enable\";",
"line_number": 372,
"rule": "S106",
"reason": "Var naming | 64f28539d9"
}
]
} |
Reviewer's GuideIntroduces a centralized saveAllFiles routine in Window to prompt and persist each modified file before closing, integrates it into the closeEvent flow to allow canceling or proceeding with backups, and adds a guard in StartManager to skip backup logic when no windows are open. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @myk1343 - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 3 issues found
- 🟢 Testing: all looks good
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
TAG Bot New tag: 6.5.26 |
|
TAG Bot New tag: 6.5.27 |
|
TAG Bot New tag: 6.5.28 |
|
TAG Bot New tag: 6.5.29 |
|
TAG Bot New tag: 6.5.30 |
|
TAG Bot New tag: 6.5.31 |
|
TAG Bot New tag: 6.5.32 |
|
TAG Bot New tag: 6.5.33 |
|
TAG Bot New tag: 6.5.34 |
|
TAG Bot New tag: 6.5.35 |
|
TAG Bot New tag: 6.5.36 |
|
TAG Bot New tag: 6.5.37 |
|
TAG Bot New tag: 6.5.38 |
|
TAG Bot New tag: 6.5.39 |
|
TAG Bot New tag: 6.5.40 |
|
TAG Bot New tag: 6.5.41 |
|
TAG Bot New tag: 6.5.42 |
修复关闭窗口保存提示
Bug: https://pms.uniontech.com/bug-view-315439.html
https://pms.uniontech.com/bug-view-315425.html
Log: 修复关闭窗口保存提示,与v20保持一致
Summary by Sourcery
Implement saveAllFiles to prompt saving modified files on window close and integrate it into the close event, and prevent auto-backup from running when no windows are open.
Bug Fixes:
Enhancements: