-
Notifications
You must be signed in to change notification settings - Fork 55
fix: Popup windows was not closed when dock screen changed #1274
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
fix: Popup windows was not closed when dock screen changed #1274
Conversation
close all popup windows when dock screen changed Log: as title Pms: BUG-288701
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds a screen-change handler in main.qml that calls Panel.requestClosePopup() to close any open popups when the dock moves to another display. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review这段代码是在Dock面板中添加了一个新的信号处理器 语法逻辑
代码质量
代码性能
代码安全
改进建议
function onDockScreenChanged() {
console.log("Dock screen changed, closing all popups")
// Close all popups when dock moves to another screen
Panel.requestClosePopup()
}
function onDockScreenChanged() {
// Close all popups when dock moves to another screen
try {
Panel.requestClosePopup()
} catch (e) {
console.error("Failed to close popups when dock screen changed:", e)
}
}
function onDockScreenChanged(oldScreen, newScreen) {
console.log(`Dock moved from screen ${oldScreen} to screen ${newScreen}, closing all popups`)
Panel.requestClosePopup()
}总体而言,这段代码质量良好,实现了预期的功能,且没有明显的性能或安全问题。上述建议可以根据实际需求选择性采纳。 |
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.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, yixinshark 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 |
close all popup windows when dock screen changed
Log: as title
Pms: BUG-288701
Summary by Sourcery
Bug Fixes: