Skip to content

Conversation

@yixinshark
Copy link
Contributor

…mpt sound

as title

Log: as title
pms: BUG-293913

@yixinshark yixinshark force-pushed the chore-hintsEnableSound branch from 13ca8a9 to 9c83581 Compare December 11, 2024 09:22
void NotificationManager::tryPlayNotificationSound(const NotifyEntity &entity, const QString &appId, bool dndMode) const
{
const auto hints = entity.hints();
if (!hints.isEmpty() && hints.value("enable-sound", false).toBool()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

原来有这个配置,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

兼容一下专业版本这个配置

@yixinshark yixinshark force-pushed the chore-hintsEnableSound branch from 9c83581 to 67ccb65 Compare December 12, 2024 02:19
@deepin-ci-robot
Copy link

deepin pr auto review

关键摘要:

  • GetCapabilities函数中,将body-images更改为body-image可能是一个拼写错误,应该保持与之前的一致性。
  • tryPlayNotificationSound函数中,新增的代码块检查了enable-soundx-deepin-PlaySound两个键值,但未处理可能存在的其他键值,可能会导致逻辑错误。
  • tryPlayNotificationSound函数中,hints变量在两个地方被定义,应该只定义一次以提高代码的可读性。

是否建议立即修改:

…mpt sound

as title

Log: as title
pms: BUG-293913
@yixinshark yixinshark force-pushed the chore-hintsEnableSound branch from 67ccb65 to da8f733 Compare December 12, 2024 03:46
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, yixinshark

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@yixinshark
Copy link
Contributor Author

/forcemerge

@deepin-bot
Copy link

deepin-bot bot commented Dec 12, 2024

This pr force merged! (status: blocked)

@deepin-bot deepin-bot bot merged commit 44e75a5 into linuxdeepin:master Dec 12, 2024
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants