Repository navigation
Conversation
1. Add optional QWindow* parameter to setEnableDeveloperMode to pass the parent window 2. Build process arguments conditionally, appending --parent-window with the window id only on X11 platforms 3. Update QML to pass root.Window.window when enabling developer mode in ACL controller and login paths 4. Set Qt.WindowDoesNotAcceptFocus flag on the modal dialog to prevent focus stealing Log: The developer mode license dialog now opens as a child of the settings window on X11, keeping it properly parented and centered Influence: 1. Enable developer mode on X11 with ACL controller enabled and verify the license dialog appears parented to the main window 2. Verify the dialog is positioned and centered correctly relative to the parent window 3. Test the login flow path to confirm the dialog still appears and enables developer mode after confirmation 4. Verify behavior on non-X11 platforms (Wayland) - no --parent-window argument should be added and dialog should still work 5. Confirm the modal dialog no longer steals focus and the underlying UI remains responsive as expected 6. Test edge cases where root.Window.window may be null feat: 向许可证对话框传递父窗口 ID 1. 为 setEnableDeveloperMode 添加可选的 QWindow* 参数以传递父窗口 2. 条件性构造进程参数,仅在 X11 平台追加 --parent-window 及窗口 ID 3. 更新 QML,在 ACL 控制器和登录路径中启用开发者模式时传入 root.Window.window 4. 为模态对话框设置 Qt.WindowDoesNotAcceptFocus 标志以防止焦点抢占 Log: 开发者模式许可证对话框现在在 X11 下作为设置窗口的子窗口打开,保持正 确的父子关系并居中显示 Influence: 1. 在启用 ACL 控制器的 X11 环境下启用开发者模式,验证许可证对话框作为主 窗口子窗口显示 2. 验证对话框相对于父窗口的定位和居中是否正确 3. 测试登录流程路径,确认对话框正常显示并在确认后启用开发者模式 4. 验证非 X11 平台(Wayland)下的行为 - 不应添加 --parent-window 参数且 对话框仍正常工作 5. 确认模态对话框不再抢占焦点且底层界面保持应有的响应性 6. 测试 root.Window.window 可能为空的边界情况 PMS: BUG-380347
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wjyrich 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 |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe PR optionally parents the developer-mode license dialog to the originating QML window on X11 by forwarding its native window ID, while preserving platform-independent arguments and updating modal focus behavior. Sequence diagram for parented developer-mode license dialogsequenceDiagram
participant User
participant QML as DevelopModePage.qml
participant Work as CommonInfoWork
participant Platform as QtPlatform
participant License as dde-license-dialog
User->>QML: setEnableDeveloperMode(true, root.Window.window)
QML->>Work: setEnableDeveloperMode(true, parentWindow)
Work->>Platform: testAttribute(IsXWindowPlatform)
alt X11 and parentWindow available
Work->>License: start(arguments, --parent-window, parentWindow.winId())
License-->>User: Show centered child dialog
else Wayland or parentWindow unavailable
Work->>License: start(arguments)
License-->>User: Show license dialog
end
License-->>Work: finished(result)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
Author
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 语法正确,逻辑清晰 ✅ 通过 潜在问题: 建议: 无需修改 2. 代码质量 ✅评价: 代码结构清晰,注释完整 ✅ 通过 潜在问题: 建议: 无需修改 3. 代码性能 ✅评价: 性能良好,资源使用合理 ✅ 通过 潜在问题: 建议: 无需修改 4. 代码安全 🔒评价: 存在0个安全漏洞 ✅ 通过
安全漏洞详情: 建议: 无需修改 💡 改进建议代码示例本报告由 AI 代码审查工具自动生成 |
This branch has not been deployed
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.
Log: The developer mode license dialog now opens as a child of the settings window on X11, keeping it properly parented and centered
Influence:
feat: 向许可证对话框传递父窗口 ID
Log: 开发者模式许可证对话框现在在 X11 下作为设置窗口的子窗口打开,保持正
确的父子关系并居中显示
Influence:
PMS: BUG-380347
Summary by Sourcery
Parent the developer-mode license dialog to its invoking window on supported platforms while preventing focus disruption.
New Features:
Bug Fixes: