-
Notifications
You must be signed in to change notification settings - Fork 57
sync: from linuxdeepin/dde-session-shell #459
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
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.
Sorry @deepin-ci-robot, your pull request is larger than the review limit of 150000 diff characters
92a2f20 to
43a5dac
Compare
0611e22 to
0b7b3b2
Compare
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#37
0b7b3b2 to
2046406
Compare
deepin pr auto review我来对这段代码进行审查,主要从代码质量、逻辑和性能几个方面分析:
改进建议:
// 将重复的lambda提取为私有方法
void FullScreenBackground::handleShutdownModeChanged(bool value) {
if (!m_shutdownBlackWidget) {
m_shutdownBlackWidget = new ShutdownBlackWidget(this);
}
qCDebug(DDE_SHELL) << "FullScreenBackground size changed to:" << size();
m_shutdownBlackWidget->setFixedSize(this->size());
m_shutdownBlackWidget->setBlackMode(value);
}
// 在构造函数中使用
connect(m_model, &SessionBaseModel::someSignal1, this, &FullScreenBackground::handleShutdownModeChanged);
connect(m_model, &SessionBaseModel::shutdownkModeChanged, this, &FullScreenBackground::handleShutdownModeChanged);
这些改进将使代码更加清晰、高效且易于维护。 |
|
/forcemerge |
|
This pr force merged! (status: blocked) |
8388261 to
5897f78
Compare
deepin pr auto review我来审查这段代码和配置文件。 Transifex 配置文件审查 (
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: deepin-ci-robot, 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 |
Synchronize source files from linuxdeepin/dde-session-shell.
Source-pull-request: linuxdeepin/dde-session-shell#37