From 81b9e5f92ffd17a7fdef992ab121b5ee8261ab45 Mon Sep 17 00:00:00 2001 From: iaom Date: Fri, 23 Feb 2024 11:24:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(libnotification):=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E9=BB=98=E8=AE=A4=E5=8D=95=E4=BD=8D=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E8=AE=BE=E7=BD=AE=E4=B8=BA=E6=AF=AB=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libukui-notification/popup-notification.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libukui-notification/popup-notification.cpp b/libukui-notification/popup-notification.cpp index c8cf8a4..c25a156 100644 --- a/libukui-notification/popup-notification.cpp +++ b/libukui-notification/popup-notification.cpp @@ -55,7 +55,7 @@ public: QString m_display; QStringList m_actionState; bool m_noFold = false; - int m_popupTimeout = 6; + int m_popupTimeout = 6000; //ms }; } using namespace UkuiNotification; @@ -290,7 +290,7 @@ void PopupNotification::setHints(const QVariantMap &hints) break; case 1: //中等级,弹窗时间默认6秒 setUrgency(Urgency::NormalUrgency); - d->m_popupTimeout = 6; + d->m_popupTimeout = 6000; break; case 2: //高等级,默认弹窗常驻,不可折叠 setUrgency(Urgency::CriticalUrgency);