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. |
f954f5e to
eff1b05
Compare
Remove commented visibility setting and conditional window flags that are no longer needed. 删除不再需要的窗口可见性注释和条件窗口标志配置。 Log: 移除冗余的窗口标志配置 PMS: BUG-289261, BUG-343503 Influence: 清理冗余代码,窗口标志现在由 DLayerShellWindow 统一管理。
eff1b05 to
4e4a993
Compare
deepin pr auto review这段代码是一个 QML 文件( 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
5. 改进建议
总结这段 diff 主要是代码清理工作,删除了不再使用的 |
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: