From 078003108172a8f3897348de97b5b73c9a3dde2b Mon Sep 17 00:00:00 2001 From: WuHaizhou Date: Fri, 25 Nov 2022 14:13:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E7=82=B9=E5=87=BB=E5=8F=8D=E5=BA=94=E8=BF=9F?= =?UTF-8?q?=E9=92=9D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 由于用户安装了steam后,系统通知收到的消息ID为空,修改增加对消息ID为空的判断解决该问题 Log: 修复系统通知点击反应迟钝问题 Bug: https://pms.uniontech.com/bug-view-91059.html Influence: 系统通知 --- dde-osd/notification/notifysettings.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dde-osd/notification/notifysettings.cpp b/dde-osd/notification/notifysettings.cpp index 199b861c3..5be880baa 100644 --- a/dde-osd/notification/notifysettings.cpp +++ b/dde-osd/notification/notifysettings.cpp @@ -66,6 +66,10 @@ void NotifySettings::initAllSettings() continue; } + if (item.ID == "") { + continue; + } + if (appList.contains(item.ID)) { // 修改系统语言后需要更新翻译 QGSettings itemSetting(appSchemaKey.toLocal8Bit(), appSchemaPath.arg(item.ID).toLocal8Bit(), this);