refactor(launcher): remove redundant window flags configuration#725
refactor(launcher): remove redundant window flags configuration#725add-uos wants to merge 1 commit intolinuxdeepin:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos 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 GuideRefactors the launcher item's window configuration by removing now-redundant window flags logic so that window behavior is fully managed by DLayerShellWindow/DWindow. Class diagram for launcher window configuration refactorclassDiagram
class AppletItem {
}
class LauncherItemWindow {
<<QML_Window>>
string note_removed_flags "Removed flags"
}
class DLayerShellWindow {
<<QML_Attached_Properties>>
int exclusionZone
string scope
string note_window_flags_visibility "Manages window flags and visibility"
}
class DWindow {
<<QML_Attached_Properties>>
bool enabled
int windowRadius
bool enableSystemResize
}
class DebugHelper {
<<Singleton>>
bool useRegularWindow
}
AppletItem *-- LauncherItemWindow : contains
LauncherItemWindow .. DLayerShellWindow : attached
LauncherItemWindow .. DWindow : attached
DebugHelper ..> DWindow : controls enabled
Flow diagram for launcher window configuration after refactorflowchart LR
A[LauncherItemWindow creation] --> B[DLayerShellWindow attached properties]
A --> C[DWindow attached properties]
B --> B1[exclusionZone = -1]
B --> B2[scope = dde-shell/launchpad]
C --> D{DebugHelper.useRegularWindow}
D -- true --> E[DWindow.enabled = false]
D -- false --> F[DWindow.enabled = true]
B1 --> G[Window behavior managed by DLayerShellWindow]
B2 --> G
E --> G
F --> G
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
ab034c1 to
f954f5e
Compare
BLumia
left a comment
There was a problem hiding this comment.
能接受,DebugHelper 的独立窗口模式目前已经没人用了大概,不过如果能保留这个选项的功能的话更好,这个选项是用来给特定调试需求 attach gammaray 用的。
| @@ -1,4 +1,4 @@ | |||
| // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. | |||
| // SPDX-FileCopyrightText: 2023 -2026 UnionTech Software Technology Co., Ltd. | |||
There was a problem hiding this comment.
| // SPDX-FileCopyrightText: 2023 -2026 UnionTech Software Technology Co., Ltd. | |
| // SPDX-FileCopyrightText: 2023 - 2026 UnionTech Software Technology Co., Ltd. |
Remove commented visibility setting and conditional window flags that are no longer needed. 删除不再需要的窗口可见性注释和条件窗口标志配置。 Log: 移除冗余的窗口标志配置 PMS: BUG-289261, BUG-343503 Influence: 清理冗余代码,窗口标志现在由 DLayerShellWindow 统一管理。
f954f5e to
eff1b05
Compare
deepin pr auto review这段希望对提供的 git diff 进行代码审查,重点关注语法逻辑、代码质量、代码性能和代码安全。 1. Diff 分析:
2. 审查意见:
3. 改进建议:
4. 格式化输出: 按照用户要求的格式(语法逻辑、代码质量、代码性能、代码安全)组织语言。 详细草稿:
总结:代码修改在逻辑上是自洽的,清理了冗余代码。主要关注点在于 最终输出生成: 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
总结该 diff 主要是为了适配 Wayland 协议的特性,清理了不再适用的 X11 风格代码,逻辑上是正确的。唯一的关注点在于 |
Remove commented visibility setting and conditional window flags that are no longer needed.
删除不再需要的窗口可见性注释和条件窗口标志配置。
Log: 移除冗余的窗口标志配置
PMS: BUG-289261, BUG-343503
Influence: 清理冗余代码,窗口标志现在由 DLayerShellWindow 统一管理。
Summary by Sourcery
Enhancements: