fix: When system has no blur effect, the Multitasking View plugin is …#1256
Merged
Merged
Conversation
deepin pr auto review这段代码是一个git diff,显示了在 语法逻辑分析
代码质量分析
性能分析
安全性分析
改进建议
例如,可以这样改进: // 检查是否需要显示多任务视图插件(需要模糊窗口支持)
if (m_multitaskviewApplet && supportsBlurEffect()) {
DockItemInfo info;
if (QMetaObject::invokeMethod(m_multitaskviewApplet, "dockItemInfo", Qt::DirectConnection, qReturnArg(info))) {
iteminfos.append(info);
}
}
// 添加辅助函数提高可读性
bool DockDBusProxy::supportsBlurEffect() const {
return DWindowManagerHelper::instance()->hasBlurWindow();
}这样的修改可以提高代码的可维护性和可读性,同时保持原有功能不变。 |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdated the condition for displaying the Multitasking View plugin in the Control Center to rely on blur effect support instead of generic compositing. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
736003a to
ec4c871
Compare
mhduiy
approved these changes
Sep 22, 2025
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mhduiy, 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 |
fixed when system has no blur effect, the Multitasking View plugin is also displayed in the Control Center Log: as title Pms: BUG-286917
ec4c871 to
f361422
Compare
Contributor
Author
|
/forcemerge |
|
This pr force merged! (status: blocked) |
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.
…also displayed in the Control Center
has no blur effect, multitasking view plugin can not display in dcc.
Log: as title
Pms: BUG-286917
Summary by Sourcery
Bug Fixes: