-
Notifications
You must be signed in to change notification settings - Fork 55
fix: When system has no blur effect, the Multitasking View plugin is … #1256
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
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();
}这样的修改可以提高代码的可维护性和可读性,同时保持原有功能不变。 |
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.
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
|
[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
|
/forcemerge |
|
This pr force merged! (status: blocked) |
…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: